Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!mcvax!hp4nl!philapd!ssp15!jos From: jos@idca.tds.PHILIPS.nl (Jos Vos) Newsgroups: comp.mail.elm Subject: Re: print option problems Message-ID: <1055@ssp15.idca.tds.philips.nl> Date: 12 Apr 89 05:15:24 GMT References: <198696@hrc.UUCP> <100@dsinc.UUCP> <4929@pbhyf.PacBell.COM> Organization: Philips Telecommunication and Data Systems, The Netherlands Lines: 24 In article <4929@pbhyf.PacBell.COM> rob@PacBell.COM (Rob Bernardo) writes: +In article <100@dsinc.UUCP> syd@dsinc.UUCP (Syd Weinstein) writes: ++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. Just use "lp -dprinter -c %s". (-c option means copy immediately). It *should* work (although I didn't try it). Now the file is copied during the lp command. This circumvents the problem of deletion of the file temporary to Elm and it also creates a lp-readable file in the spool directory of lp. -- -- ###### Jos Vos ###### Internet jos@idca.tds.philips.nl ###### -- ###### ###### UUCP ...!mcvax!philapd!jos ######