- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to print one job to two printers from the comm...
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
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
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
09-23-2002 03:39 PM
09-23-2002 03:39 PM
banner HELLO |lp -dlp1 -dlp2
which would have been the easiest implementation, but alas it does not work.
I've tried:
banner HELLO |lp -dlp1 |lp -dlp2
but it didn't like that either.
I haven't seen this solved in the forums yet; I did see a reference to using the tee command, but no examples.
I would like to get this working from the command line if possible (no scripting).
Thanks,
Jim
OS version and shell doesn't appear to matter and I'm just using the general HP-UX lp scheduler.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2002 04:32 PM
09-23-2002 04:32 PM
Re: How to print one job to two printers from the command line?
$ for i in 1 2
>do
>banner HELLO | lp -dlp$i
>done
$
Running this from the command line, I don't know if you would call this scripting or not. Just ignore if this is not what you're looking for.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2002 05:04 PM
09-23-2002 05:04 PM
Re: How to print one job to two printers from the command line?
Why mess around with a command line kludge?
I tested this & it works.
Create a "third" printer that points to one of them - doesn't matter which. And then edit the interface for this "printer" and add the command that will send the request to the other as well.
This will cause the single print request to that "printer" to go to both.
In this case both were remote printers & I added the lp -dlp2 $1 just ahead of the rlp command line that was sending to lp1.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2002 08:32 AM
09-24-2002 08:32 AM
Solutionecho hello |tee frag|lp -d prt1;lp -d prt2 < frag;rm frag
request id is prt1-96 (standard input)
request id is prt2-97 (standard input)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2002 09:02 AM
09-24-2002 09:02 AM
Re: How to print one job to two printers from the command line?
banner hello | lp -dlp1 ; banner hello | lp -dlp2
lp -dlp1 will take only one input at a tie and also in the second try the /op of the first line become the input for the sencond so it wont work either .
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2002 12:53 PM
09-25-2002 12:53 PM
Re: How to print one job to two printers from the command line?
Rory's suggestion was the one that fit best with what I was trying to do.
Jeff's suggestion was really good as well, but assumes root access.
Manoj, the problem with that one assumes you are in control of what gets printed.
The banner HELLO was just an example, I'm not actually in control of that part in our application.
Thanks for all the suggestions.
HP please allow multiple -d switches!