Hi,
I'm running 3 printers off a Linux 2.2.6 server. I have an old
application which can be configured to either print directly to a port
(the port has to be set chmod 666 in order for all users to print) if
given the device name or if given another name it will dump its output
to that filename. Right now, its set up to print to /dev/lp0, /dev/lp1,
and /dev/lp2, and it works, but I want to get it to work using the
spooler. I've set up RedHat 6.0's "printtool" to map PRINTER0 to
/dev/lp0, PRINTER1 to /dev/lp1, etc, and if I issue the command "lpr
-PPRINTER0 < filename" it spools the file and prints it perfectly. The
problem is, I can't tell the program I'm using to send a command line;
it either dumps to a filename or a device. I've looked at the
/dev/printer device which hands its input to lpd, but as far as I can
tell, it only works to one printer, or through a filter (i need to be
able to manually specify which printer to send the output to). This
problem has left me stumped. It seems like more people that me need to
do something like this. Or am I just missing something? Thanks for any
help you can provide.
Nick