GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: name to printing
Operating System - HP-UX
1855644
Members
7803
Online
104113
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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-29-2002 12:08 PM
01-29-2002 12:08 PM
Hi All!
if I send a document to print, I do: lp -d doc_name, than I can see the status of queue with lpstat - doing it, I see the list below:
fax-2 root priority 0 Jan 29 17:54 fax 5273 bytes
fax-3 root priority 0 Jan 29 17:59 fax 5275 bytes
fax-4 root priority 0 Jan 29 18:04 fax 5274 bytes
fax-5 root priority 0 Jan 29 18:04 fax 5274 bytes;
...but I need to get a specific name of the job from each document that I sent to printer.
How can I?
Thanx in advance,
if I send a document to print, I do: lp -d
fax-2 root priority 0 Jan 29 17:54 fax 5273 bytes
fax-3 root priority 0 Jan 29 17:59 fax 5275 bytes
fax-4 root priority 0 Jan 29 18:04 fax 5274 bytes
fax-5 root priority 0 Jan 29 18:04 fax 5274 bytes;
...but I need to get a specific name of the job from each document that I sent to printer.
How can I?
Thanx in advance,
We are spirits in the material world
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2002 12:15 PM
01-29-2002 12:15 PM
Re: name to printing
Hi,
'lpstat -o' will list you the status of all output requests. Each request will be assigned with a specific job_id.
Also 'lpstat -t' will give you a full information. You can grep the parameter you needed.
HTH,
Shiju
'lpstat -o' will list you the status of all output requests. Each request will be assigned with a specific job_id.
Also 'lpstat -t' will give you a full information. You can grep the parameter you needed.
HTH,
Shiju
Life is a promise, fulfill it!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2002 12:24 PM
01-29-2002 12:24 PM
Re: name to printing
Wilson,
in /var/spool/lp/request/fax - I can see the documents that I get to print, like the list below:
( dA0009vsurjux1
dB0009vsurjux1
dC0009vsurjux1)
I want to change the first part of name of file (excluding the server name VSURJUX1). Than the list could be: name_I_want_vsurjux1, where "name_I_want_" is the parameter that I used in ->lp -dfax filetoprint
thanx,
in /var/spool/lp/request/fax - I can see the documents that I get to print, like the list below:
( dA0009vsurjux1
dB0009vsurjux1
dC0009vsurjux1)
I want to change the first part of name of file (excluding the server name VSURJUX1). Than the list could be: name_I_want_vsurjux1, where "name_I_want_" is the parameter that I used in ->lp -dfax filetoprint
thanx,
We are spirits in the material world
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2002 07:21 PM
01-29-2002 07:21 PM
Solution
Once the lp spooler accepts a job for printing, the name of the original file is available only in the control file located in the individual printer's directory in /var/spool/lp/request. lpstat cannot retrieve the control file details. You could, however, write a script to report the details from the control files. Use the line that starts with N as the name of the original file.
Now the name fax seems to indicate that this is not a standard printer but a fax subsystem. In that case. you may need additional details concerning the way the fax works in order to extract the original file names.
Bill Hassell, sysadmin
Now the name fax seems to indicate that this is not a standard printer but a fax subsystem. In that case. you may need additional details concerning the way the fax works in order to extract the original file names.
Bill Hassell, sysadmin
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 2026 Hewlett Packard Enterprise Development LP