You would need to add some logic to handle the existing serial printers until they disappear.
One way could be to define a print command for each device.
For a tty or non-network spool:
printcmd="cat form$newfile >> $printer"
For network printers:
printcmd="cat form$newfile | lp -d $printer"
Or you could set up all remaining serial printers as spools and then change the script to only use lp on line 379 and change the printer selection steps to define spool name instead of device file.
Main Topics
Browse All Topics





by: already_usedPosted on 2009-10-30 at 16:47:13ID: 25707522
Are you adding the network printers as lpr/lpd (remote printers)
Change the script so that the line that actually copies the printfile to the device,( line 379?) is replaced by
"lp -d $printer -c -s $file"
Be sure to use the -c option to prevent the first print queue from deleting the file before the second queue has printed it.
This script looks like it supports about 6 printers.