- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- printer queue to print to a file
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
06-03-2004 03:04 AM
06-03-2004 03:04 AM
Any tips on doing this?
Thanks,
Jon
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2004 03:15 AM
06-03-2004 03:15 AM
Re: printer queue to print to a file
setup the printer device as a file:
lpadmin -pprinter -v/tmp/file -m
this will print the contents to this file.
manish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2004 03:16 AM
06-03-2004 03:16 AM
Re: printer queue to print to a file
BTW, you can use cat(1) to do the same :-).
Anshu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2004 03:22 AM
06-03-2004 03:22 AM
Re: printer queue to print to a file
(-vdevice associates a new device with printer P. Device is the pathname of a file that is writable by lp).
Bruno
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2004 03:24 AM
06-03-2004 03:24 AM
Re: printer queue to print to a file
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2004 03:57 AM
06-03-2004 03:57 AM
Re: printer queue to print to a file
The reason I need this is we have an application that sends pintjobs to various remote printers that run a certain printing software. It seems that the output at times is garbled. The tech. people of the printing software want to see the data as it comes out of the sending application. So, the best that we have come up with is to have a queue that will direct it's output to a file.
Thanks for the ideas so far. -- Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2004 04:00 AM
06-03-2004 04:00 AM
SolutionMay be this idea looks crazy but think about it like an alternative.
All printer request go to a corresponding spool directory placed into /var/spool/lp/request/
Always two files are generated by each request. One of them is a header file (begin with c*) an other is data file (begin with d*). Both of then are associated by job-id.
So if you have a printer, always disabled, you can develop a script file that handle this files according with you criteria. Take note about that all data files (d*) are plain text, no scape sequences are included.
Rgds.