1748182 Members
3521 Online
108759 Solutions
New Discussion юеВ

Cancel lp print jobs

 
SOLVED
Go to solution
catastro
Super Advisor

Cancel lp print jobs

Hi. I am trying to remove print jobs from the printer pr2 from the command line using
cancel pr2
and it's not dessaparing from the queue, and from SAM is not doing anything at all also.
I stopped already the spooler and also made the printer to reject new requests and tried again to cancel these jobs but nothing worked out. Any help? Thanks ins advance...

printer queue for pr2
status: printing data (36864 bytes) - blocked (56654 sec)
interface: online
printer lcd: EN LMNEA VGL
: CINTA VIDA 86%
printer job: In Progress

job: d1prn-18
type: LPD
host: 10.57.88.10
tcp port: 1023
client job: 938

QUEUED JOBS:
JOB TYPE HOST INFO SIZE
d1prn-19 LPD 10.57.88.10 (1022) job #938

d1prn-20 LPD 10.57.88.10 (1021) job #939

d1prn-21 LPD 10.57.88.10 (1020) job #940
3 REPLIES 3
Steven E. Protter
Exalted Contributor
Solution

Re: Cancel lp print jobs

Shalom,

You can look around in /var/spool and manually delete the jobs.

Only do this with the spooler shut down as you currently have it.

You may need to use fuser -uk to identify and remove processes with file handles open.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
catastro
Super Advisor

Re: Cancel lp print jobs

Hi Steven. Thanks for the reply.
The only thing I was able to find in the /var/spool FS about this printer is this:

girona:/var/spool/lp#cd request/pr2/
girona:/var/spool/lp/request/pr2#ll
total 4
-rw-r--r-- 1 lp lp 0 May 30 2006 .remotesending
-rw-r--r-- 1 root lp 23 Ene 22 09:22 .sendingstatus
-rw-r--r-- 1 lp lp 4 Ene 22 10:28 .seq
girona:/var/spool/lp/request/pr2#cat .remotesending .sendingstatus .seq
pr2: ready and waiting
941

And nothing about these jobs that are running. Can you point me something else?
Thanks in advance
catastro
Super Advisor

Re: Cancel lp print jobs

I founded the clue. Was nothing related with the HP-UX System. It was all about the print server the printer has on board.
We had to reboot the printer and the comunication was restored. It seemed to me that the connection between the print server and the print spooler broke down somehow.
Thanks anyway.