- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- print duplicate in two printers
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2008 12:17 PM
тАО03-04-2008 12:17 PM
I have an application to print a ticket to one printer in Toronto office. However, we need to get the same ticket printed in Vancouver office at the same time. Note this is real-time generated ticket, which can NOT be reproduce. Otherwise, the application will enter the order again.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2008 12:29 PM
тАО03-04-2008 12:29 PM
Re: print duplicate in two printers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2008 12:33 PM
тАО03-04-2008 12:33 PM
Re: print duplicate in two printers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2008 12:55 PM
тАО03-04-2008 12:55 PM
Re: print duplicate in two printers
this sent the test banner to both printers itcolor and helpdesk_lj0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2008 12:59 PM
тАО03-04-2008 12:59 PM
Re: print duplicate in two printers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2008 01:12 PM
тАО03-04-2008 01:12 PM
Re: print duplicate in two printers
Sorry but the second printer is further from my desk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2008 01:18 PM
тАО03-04-2008 01:18 PM
Re: print duplicate in two printers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2008 01:21 PM
тАО03-04-2008 01:21 PM
Re: print duplicate in two printers
http://lpr.brooksnet.com/broadcast-printing.html
or ROC Rhapsody
http://www.rocsoftware.com/rhapsody-print-output-manager.shtml
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2008 01:32 PM
тАО03-04-2008 01:32 PM
Re: print duplicate in two printers
for x in printer1 printer2
do
lp -d$x afile
done
And another way is to create a class
lpadmin -pprinter1 -cq1
lpadmin -pprinter2 -cq1
lp -dq1 -n2 afile
That would create and enable the class Q1 and assign printers P1 and
P2 to it. When a job is sent to a class, it prints on whichever
printer in the class becomes available first. If my guess is right,
using "-n 2" (which requests two copies) will cause one copy to come
out on each printer. Actually, it will only do this if both printers
are idle; otherwise, both copies may come out on the same printer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2008 02:00 PM
тАО03-04-2008 02:00 PM
Re: print duplicate in two printers
for x in printer1 printer2; do /usr/bin/lp -d$x $*;done
#chmod 755 lp
#export PAHT=$PATH:/path/to/new/pl
make sure your using the right lp
#/usr/bin/whitch lp
/home/user/bin/lp
#lp afile
sends the file to both printers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2008 02:22 PM
тАО03-04-2008 02:22 PM
Re: print duplicate in two printers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2008 02:32 PM
тАО03-04-2008 02:32 PM
SolutionEdit the /etc/lp/interface/ file for printer1. Add this "cat $6|lp -dprinter2" towards the top, somewhere after the export $PATH.
Works like a charm.
All jobs sent to printer1 will also be sent to printer2
substitute the names as you wish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2008 02:53 PM
тАО03-04-2008 02:53 PM
Re: print duplicate in two printers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2008 02:57 PM
тАО03-04-2008 02:57 PM
Re: print duplicate in two printers
note that i have nobanner option on the lp command, but the duplicate still has the banner on. is there a way to fix it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2008 11:50 PM
тАО03-04-2008 11:50 PM
Re: print duplicate in two printers
The sixth parm to /etc/lp/interface/printer1.
But scanning /usr/lib/lp/model/*, I don't see it used in any scripts that isn't dead code.
>i have nobanner option on the lp command, but the duplicate still has the banner on.
You will have to "copy" the parms to the interface file and convert them back to lp options to pass to ... |lp -dprinter2
Either you always add -onb. Or you look at the parms and add it.
What does your interface script look like?
(Please attach.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-05-2008 08:08 AM
тАО03-05-2008 08:08 AM
Re: print duplicate in two printers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2008 02:00 AM
тАО03-07-2008 02:00 AM
Re: print duplicate in two printers
This is the first file to be printed. If you print more than one at the same time, you would only duplicate the first.
>i have nobanner option on the lp command, but the duplicate still has the banner on.
Is this -onb? It would be trivial to always set it. But if you want this conditioned by the original value, I would need to see some debugging output.
Remove this cat below:
cat $6|lp -dvanapps ### added
# Add bin to the path for systems with /bin
...
done
# Insert this comment and lp here:
# Duplicate each file on vanapps
lp -dvanapps $files
if [ "$debugf" != "" ]
...
If you just want to add -onb above you could use:
# Duplicate each file on vanapps
lp -dvanapps -onb $files
If you want to condition -onb, then we need to print the options. Add this before that lp.
LOG_options=/tmp/model_options.log
echo "LP options for: $file1: $options" >> $LOG_options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2008 10:38 AM
тАО03-07-2008 10:38 AM
Re: print duplicate in two printers
note that i have nobanner option on the lp command, but the duplicate still has the banner on. is there a way to fix it?
$6 is the 6th arg that lp is passing to the interface file which happens to be the temp name of the file that is being printed.
As far as getting rid of the banner just modify the line you added "cat $6|lp -dPrinter2 -o nb" and/or any other options you like. This could certainly be made more eloquent byt parsing all the command line options but sometimes simplicity has is virtues at the cost of being flexible.