Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ucsd!rutgers!apple!voder!pyramid!cbmvax!vu-vlsi!dsinc!syd From: syd@dsinc.UUCP (Syd Weinstein) Newsgroups: comp.mail.elm Subject: Re: print option problems Message-ID: <100@dsinc.UUCP> Date: 31 Mar 89 03:30:14 GMT References: <198696@hrc.UUCP> Reply-To: syd@dsinc.UUCP (Syd Weinstein) Organization: Datacomp Systems, Inc., Huntingdon Valley, PA 19006 Lines: 21 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. I believe lp has an option to make a copy, but the cat method also solves the problem where lp has no permission to read the directory where the file resides. -- ===================================================================== Sydney S. Weinstein, CDP, CCP Elm Coordinator Datacomp Systems, Inc. Voice: (215) 947-9900 {allegra,bpa,vu-vlsi}!dsinc!syd FAX: (215) 938-0235