i want to cancel printing job


 
Thread Tools Search this Thread
Operating Systems HP-UX i want to cancel printing job
# 1  
Old 06-14-2010
i want to cancel printing job

hi every body
i used " lpstat -o" to show the printer jobs and i already canceld it by "cancel -e -f jobid"
but the problem i found when used " lpstat -o" again it said that job in progress i think because it in the buffer but i don't know how to clear the printer.
# 2  
Old 06-14-2010
were you root when you did a cancel -e ? ( -e only works for priviledged users...)
# 3  
Old 06-14-2010
Your command has too many switches and in my version there is no "-f" switch.

Code:
To cancel one job for your user (or any user if you are root):
cancel <jobid>

As root, to cancel all jobs for a printer:
cancel <printer> -e

# 4  
Old 06-15-2010
thanks alot for your attention but i need to know when the job in progress it has ajob id or not i didn't find any id for it i think because it goes now in cash or because it is in printing mode
# 5  
Old 06-15-2010
??
dont know what you are asking for, look at this sequence:
Code:
ran:/sm/bin $ lpstat -t
scheduler is running
no system default destination
device for lpvbe: /dev/null
device for xeroxsas: /dev/null
lpvbe accepting requests since Sep 10 19:19
xeroxsas accepting requests since Nov  8 18:07
printer lpvbe disabled since Sep 10 16:29 -
        reason unknown
        fence priority : 0
printer xeroxsas is idle.  enabled since Nov  8 18:07
        fence priority : 0
no entries
ran:/sm/bin $ lp -oc -olm8 -onb -dlpvbe mflm
request id is lpvbe-96 (1 file)
ran:/sm/bin $ lpstat -t
scheduler is running
no system default destination
device for lpvbe: /dev/null
device for xeroxsas: /dev/null
lpvbe accepting requests since Sep 10 19:19
xeroxsas accepting requests since Nov  8 18:07
printer lpvbe disabled since Sep 10 16:29 -
        reason unknown
        fence priority : 0
printer xeroxsas is idle.  enabled since Nov  8 18:07
        fence priority : 0
lpvbe-96            vbe            priority 0  Jun 15 10:20
        mflm                                    793 bytes
ran:/sm/bin $ lpstat -o lpvbe
lpvbe-96            vbe            priority 0  Jun 15 10:20
        mflm                                    793 bytes
lpvbe-96            vbe            priority 0  Jun 15 10:20
        mflm                                    793 bytes
lpvbe-96            vbe            priority 0  Jun 15 10:20
        mflm                                    793 bytes
ran:/sm/bin $ enable lpvbe
printer "lpvbe" now enabled
ran:/sm/bin $ lpstat -o lpvbe
lpvbe-96            vbe            priority 0  Jun 15 10:20 on lpvbe
        mflm                                    793 bytes
lpvbe-96            vbe            priority 0  Jun 15 10:20 on lpvbe
        mflm                                    793 bytes
ran:/sm/bin $ lpstat -t
scheduler is running
no system default destination
device for lpvbe: /dev/null
device for xeroxsas: /dev/null
lpvbe accepting requests since Sep 10 19:19
xeroxsas accepting requests since Nov  8 18:07
printer lpvbe now printing lpvbe-96.  enabled since Jun 15 10:20
        fence priority : 0
printer xeroxsas is idle.  enabled since Nov  8 18:07
        fence priority : 0
lpvbe-96            vbe            priority 0  Jun 15 10:20 on lpvbe
        mflm                                    793 bytes
ran:/sm/bin $ lpstat -t
scheduler is running
no system default destination
device for lpvbe: /dev/null
device for xeroxsas: /dev/null
lpvbe accepting requests since Sep 10 19:19
xeroxsas accepting requests since Nov  8 18:07
printer lpvbe now printing lpvbe-96.  enabled since Jun 15 10:20
        fence priority : 0
printer xeroxsas is idle.  enabled since Nov  8 18:07
        fence priority : 0
printer xeroxsas is idle.  enabled since Nov  8 18:07
        fence priority : 0
lpvbe-96            vbe            priority 0  Jun 15 10:20 on lpvbe
        mflm                                    793 bytes
ran:/sm/bin $ lpstat -t
scheduler is running
no system default destination
device for lpvbe: /dev/null
device for xeroxsas: /dev/null
lpvbe accepting requests since Sep 10 19:19
xeroxsas accepting requests since Nov  8 18:07
printer lpvbe is idle.  enabled since Jun 15 10:20
        fence priority : 0
printer xeroxsas is idle.  enabled since Nov  8 18:07
        fence priority : 0
no entries



---------- Post updated at 10:52 ---------- Previous update was at 10:42 ----------

To follow:
Code:
ran:/sm/bin $ disable lpvbe
printer "lpvbe" now disabled
mairan:/sm/bin $ r lp
lpstat -t
scheduler is running
no system default destination
device for lpvbe: /dev/null
device for xeroxsas: /dev/null
lpvbe accepting requests since Sep 10 19:19
xeroxsas accepting requests since Nov  8 18:07
printer lpvbe disabled since Jun 15 10:44 -
        reason unknown
        fence priority : 0
printer xeroxsas is idle.  enabled since Nov  8 18:07
        fence priority : 0
no entries
ran:/sm/bin $ lp -oc -olm8 -onb -dlpvbe mflm
request id is lpvbe-98 (1 file)
ran:/sm/bin $ lpstat -t
scheduler is running
no system default destination
device for lpvbe: /dev/null
device for xeroxsas: /dev/null
lpvbe accepting requests since Sep 10 19:19
xeroxsas accepting requests since Nov  8 18:07
printer lpvbe disabled since Jun 15 10:44 -
        reason unknown
        fence priority : 0
printer xeroxsas is idle.  enabled since Nov  8 18:07
        fence priority : 0
lpvbe-98            vbe            priority 0  Jun 15 10:44
        mflm                                    793 bytes
ran:/sm/bin $ lpstat -o lpvbe
         mflm                                    793 bytes
ran:/sm/bin $ lpstat -o lpvbe
lpvbe-98            vbe            priority 0  Jun 15 10:44
        mflm                                    793 bytes
lpvbe-98            vbe            priority 0  Jun 15 10:44
        mflm                                    793 bytes
ran:/sm/bin $ cancel lpvbe-98
request "lpvbe-98" cancelled
ran:/sm/bin $ lpstat -o lpvbe
no entries
no entries
ran:/sm/bin $ lpstat -t
scheduler is running
no system default destination
device for lpvbe: /dev/null
device for xeroxsas: /dev/null
lpvbe accepting requests since Sep 10 19:19
xeroxsas accepting requests since Nov  8 18:07
printer lpvbe disabled since Jun 15 10:44 -
        reason unknown
        fence priority : 0
printer xeroxsas is idle.  enabled since Nov  8 18:07
        fence priority : 0
no entries
ran:/sm/bin $ enable lpvbe
printer "lpvbe" now enabled

etc...
# 6  
Old 06-15-2010
when i print something i list the job by lpstat -t so i see the jobid but if the printer in progress of printing i didn't find the job id but the printer now is printing so i need to cancel this job whiout i have the jobid
# 7  
Old 06-15-2010
What you ask is not possible from unix "lp" commands. Once the job has left the unix print queue it has gone.

In this case you'll need to cancel the job on the printer itself ... or from the print server software if it is actually a print server.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. How to Post in the The UNIX and Linux Forums

Printing a 'right arrow' on a new page at the End Of Job

Hi, I have set up an HP printer, Model P3005dn" on our server running HP-Ux 11.31. The printing is fine but I'm also getting an extra page printed with an right arrow (-->) only. I suspect that this could be the "Tab Expansion" or a "CR/LF" character. Can ayone please advise what could... (0 Replies)
Discussion started by: Koketso
0 Replies

2. Shell Programming and Scripting

Cancel Printing Problem

Hi guys, Does any one know how to do script for cancel Print jobs. First it will ask for printer name or type and then show all print queus then remove jobs from the printer. Thanks (14 Replies)
Discussion started by: masco
14 Replies

3. UNIX for Dummies Questions & Answers

can't cancel nohup job

Yesterday I started a nohup job called assoc.sh. It has not finished running, but I have realised a problem with my script, so wish to cancel it, modify and restart it. However, I cannot find the PID, so can't cancel it. I have searched the ps list and nothing resembles my job - how can I cancel... (13 Replies)
Discussion started by: polly_falconer
13 Replies

4. Post Here to Contact Site Administrators and Moderators

Cancel Account

I accidentally typed a wrong user name... pls delete my account so that i can create a new one.. Thanks (4 Replies)
Discussion started by: Pat_Martin
4 Replies

5. Solaris

Cron Job... How to cancel it.

Hello, I am sort of new to cron jobs, I have a cron job running everyday that no longer needs to. How do I cancel it? (4 Replies)
Discussion started by: komputersman
4 Replies

6. UNIX for Advanced & Expert Users

cancel the massage

Hi all In Aix system Someone know i want to cancel the massage. if some user print something and user root deleting the job i got brodcast message " message from queueing system job number XXX has been deleteing from queue. <EOT> " I use the cancel command (1 Reply)
Discussion started by: goldfelda
1 Replies

7. UNIX for Dummies Questions & Answers

How to cancel all printjobs at once?

Hi unix-friends, I've got an RS6000 with Unix 4.3 as OS. I'm writing a script that i want to use for cancelling all print jobs at once. Does anyone have any good idea's, hints, or tips? Hope to hear from you, Erik (3 Replies)
Discussion started by: Erik Rooijmans
3 Replies

8. UNIX for Dummies Questions & Answers

FormFeed BEFORE printing a job

I have a problem where my printer formfeeds a blank page prior to printing a job. Anyone know where I can turn this off? AIX O/S - RS-6000 (2 Replies)
Discussion started by: Docboyeee
2 Replies

9. UNIX for Dummies Questions & Answers

Permission Denied when cancel lp job

Sun E5000 running Solaris 8 I receive permission denied error when attempting to cancel a print job as root, user, or lp. I found a tech tip that said to remove the tcp lp listeners but that didn't help. I can clean the queue using the old sun lpc command but my users need to be able to cancel... (2 Replies)
Discussion started by: Ron Restieri
2 Replies
Login or Register to Ask a Question