Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I print the same job on multiple printers?

Status
Not open for further replies.

create77

Programmer
Aug 20, 2002
1
MT
I would like to have the option to send the same job to more than one printer on a SCO OpenServer system. Upon trying the 'lp' command with multiple printers, such as:

lp -dlpt1 -dlpt2 filename, the system returns a warning of multiple printers specified and the job is submitted to the last printer (in this case lpt2).

Does anyone have an idea how I can achieve this (maybe through a script or something).

Thank you for your help.
 
Maybe you could create a script which reads a list perhaps called printerlist of your printers like the following:

for printer in `cat printerlist`
do
lp -d$printer $1
done

Call this 'multiprint' or something like that, make it executable and issue a ./multiprint filename to use it, the $1 above will read your filename from the command line. Note that the ` character above isn't a normal apostrophe, but a backtick - usually found above the tab key. Hope this helps.
 
If your intent is for print jobs sent to one printer to always be sent to a second printer as well, you have the option to spawn a second lp command from within the printer interface itself. Refer to thread58-312028 regarding this. If you need more detailed help, please post a copy of the interface you are using and a sample print command line for the other printer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top