HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Splitting Output to Printer/File with lp
Operating System - HP-UX
1837673
Members
2786
Online
110117
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
01-21-2002 09:00 AM
01-21-2002 09:00 AM
Splitting Output to Printer/File with lp
I would like to split the output of a print job. i.e send one copy to the printer and another copy to a file. Is there a simple way of achieving this?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2002 09:07 AM
01-21-2002 09:07 AM
Re: Splitting Output to Printer/File with lp
Hi Chris:
# cat /etc/hosts|tee /tmp/hosts|lp
Regards!
...JRF...
# cat /etc/hosts|tee /tmp/hosts|lp
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2002 11:04 AM
01-21-2002 11:04 AM
Re: Splitting Output to Printer/File with lp
Hi Chris:
I'll give you a Plan B. The other method is to modify the /var/spool/lp/interface/myprinter file where myprinter is the desired print queue. You can use this method if all the output jobs need to be archived and you want to make the operation invisible to the users and applications. You will need to generate a unique filename for each job. In many cases it is common to create a directory for each queue.
Regards, Clay
I'll give you a Plan B. The other method is to modify the /var/spool/lp/interface/myprinter file where myprinter is the desired print queue. You can use this method if all the output jobs need to be archived and you want to make the operation invisible to the users and applications. You will need to generate a unique filename for each job. In many cases it is common to create a directory for each queue.
Regards, Clay
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2002 05:48 AM
01-22-2002 05:48 AM
Re: Splitting Output to Printer/File with lp
Hi Clay,
Thanks for the input. I assumed this would be the solution. This might sould a bit daft. But I'm not sure exactly what changes I'll have to make.
Regards
Thanks for the input. I assumed this would be the solution. This might sould a bit daft. But I'm not sure exactly what changes I'll have to make.
Regards
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP