Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!erbe.se!prc From: prc@erbe.se (Robert Claeson) Newsgroups: comp.unix.questions Subject: Re: 'C' access to the lp spooling stuff, any ideas Message-ID: <1990Dec14.095702.21188@erbe.se> Date: 14 Dec 90 09:57:02 GMT References: <1990Dec12.232035.14857@holos0.uucp> <13632@chaph.usc.edu> Sender: prc@erbe.se (Robert Claeson) Reply-To: prc@erbe.se (Robert Claeson) Organization: ERBE DATA AB, Jakobsberg, Sweden Lines: 24 In article <13632@chaph.usc.edu>, jeenglis@alcor.usc.edu (Joe English Muffin) writes: |> wdh@holos0.uucp (Weaver Hickerson) writes: |> >I'd like to be able to queue files by writing into the lp fifos, tables, |> >and whatever other magic is involved. Does anybody know of the format, |> >rules, caveats, etc for this type of thing. |> popen("lpr","w"); |> |> is by far your best bet. Ahem, the question was regarding the System V "lp" spooler. For it, the following should be done instead: popen("lp -s", "w"); In other words, not much of a difference. -- Robert Claeson |Reasonable mailers: rclaeson@erbe.se ERBE DATA AB | Dumb mailers: rclaeson%erbe.se@sunet.se Jakobsberg, Sweden | Perverse mailers: rclaeson%erbe.se@encore.com Any opinions expressed herein definitely belongs to me and not to my employer.