View Thread Reply Return to Index Previous Next

Unixguide.net

unix script: how to get job id of print job send to print server?
By:pnguyen
Date: Wednesday, 24 January 2001, at 9:34 am

How to get job id of print job send to print server?
============
Example:
I want to send a file to a print server:
"lp -d PrinterA_prn File1"
the shell would return a notification:
"request id is PrinterA_prn-xx (1 file)" ; xx = job id.
Now let say I want to cancel that job:
"cancel PrinterA_prn-xx" ; xx = job id.
===========
What I want is to be able to do all this steps in a script. First send the job, then get the job id, and finally use the job id to cancel the job.

Can anyone help? Or is there another way to cancel job send to print server?

Thanks.



Messages In This Thread

unix script: how to get job id of print job send to print server?
pnguyen -- Wednesday, 24 January 2001, at 9:34 am
Re: unix script: how to get job id of print job se
sudip guha -- Monday, 17 October 2005, at 7:45 am


UNIXguide.net
English to Visayan Cebuano Dictionary

Find: Display: hits per page

Suggest a Site
Visayan Cebuano to English Dictionary