Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!ames!pacbell!pbhyf!rob From: rob@PacBell.COM (Rob Bernardo) Newsgroups: comp.mail.elm Subject: Re: print option problems Message-ID: <4929@pbhyf.PacBell.COM> Date: 4 Apr 89 04:04:08 GMT References: <198696@hrc.UUCP> <100@dsinc.UUCP> Reply-To: rob@PacBell.COM (Rob Bernardo) Organization: Pacific * Bell, San Ramon, CA Lines: 24 In article <100@dsinc.UUCP> syd@dsinc.UUCP (Syd Weinstein) writes: +In article <198696@hrc.UUCP> dan@hrc.UUCP (Dan Troxel) writes: +> +>I am trying to use the 'p' option to print my mail, but even though elm +>tells me that the message has been sent to printer, it does not get +>printed. +># how to print a message ('%s' is the filename) +>print = cat | lp -dprinter + +Your almost there with this one. It's + +print = cat %s | lp -dprinter + +The reason the lp -dprinter %s doesn't work is probably that elm deletes +the temporary file and lp cannot find it after its gone. Actually another reason why it doesn't work is that a filename as an argument to System V lp(1) must be readable by "other", and for security reasons ELM creates temp files with permissions 0600. -- Rob Bernardo, Pacific Bell UNIX/C Reusable Code Library Email: ...![backbone]!pacbell!pbhyf!rob OR rob@pbhyf.PacBell.COM Office: (415) 823-2417 Room 4E850O San Ramon Valley Administrative Center Residence: (415) 827-4301 R Bar JB, Concord, California