lpadmin(8) question
Clarence Dold
dold at mitisft.Convergent.COM
Mon Jun 4 14:30:20 AEST 1990
in article <453 at van-bc.UUCP>, sl at van-bc.UUCP (Stuart Lynne) says:
> Does this mean that there is nothing to stop you from doing this so don't do
> it?
> Or that lpsched is designed to pay attention to having multiple destinations
> some with the same physical device.
There is no 'guard' within the lp subsystem. Two print jobs could provide
output to the same port simultaneously.
What you might do is have the differing models attached to device /dev/null,
as if they were remote printer models. In the model, rather than a
cat to stdout, invoke an lp job to a printer with an unused name.
We do this locally, with the default printer called "laser", a special model
for UNIX - WordPerfect called "WPlaser", and both of them feeding output to
a model called "RealLaser", which no one adresses directly.
This results in a little overhead in extra processes, but allows for any
number of oddball printer models to be introduced transparently.
--
---
Clarence A Dold - dold at tsmiti.Convergent.COM (408) 435-5293
...pyramid!ctnews!tsmiti!dold FAX (408) 435-3105
P.O.Box 6685, San Jose, CA 95150-6685 MS#10-007
More information about the Comp.unix.wizards
mailing list