'C' access to the lp spooling stuff, any ideas

Robert Claeson prc at erbe.se
Fri Dec 14 20:57:02 AEST 1990


In article <13632 at chaph.usc.edu>, jeenglis at alcor.usc.edu (Joe English Muffin) writes:

|> wdh at 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 at erbe.se
ERBE DATA AB                    |      Dumb mailers: rclaeson%erbe.se at sunet.se
Jakobsberg, Sweden              |  Perverse mailers: rclaeson%erbe.se at encore.com
Any opinions expressed herein definitely belongs to me and not to my employer.



More information about the Comp.unix.questions mailing list