Operating System - HP-UX
1837921 Members
6692 Online
110124 Solutions
New Discussion

unable to cancel print queue

 
Goh Cheng Chuan
Occasional Advisor

unable to cancel print queue

currently our printing is sent to an espon line printer via a HP JetDirect using a dumb script file. our application for printing Purchase Order has been encountering ad-hoc alignment problems since installation. the printing has been 're-designed' by the consultants which did not solve the problem.
however, it got worse now as we r unable to send any printing to this printer. we noticed a print queue when we used the command 'lpstat -t'. cancelling the printing cannot be done as it kept giving a message of non-existant. we hv tried recreating a new printer name which gives worse alignment problems (mainly horizontal alignment issues eg skipping lines)
any insights?
Goh CC
9 REPLIES 9
Jayapal AP
Advisor

Re: unable to cancel print queue

Hello,

Whenever u get this type of problem what I suggest is temparary solution for this is Disable the printer spool and re-enable the same print spooler by giving the command
disable .
Hopefully this will solve the problem.

Best of luck

jayapal
Jayapal AP
Goh Cheng Chuan
Occasional Advisor

Re: unable to cancel print queue

yes, the 'disable' & 'enable' hv been tried & printer spooler has been stopped as well. we hv also rebooted the system but the print queue still stays there.
Goh CC
Rita C Workman
Honored Contributor

Re: unable to cancel print queue

Any chance of you attaching a copy of this 'dumb' script?
Not that that is the where the problem lies...but it would be something to rule it out.


Tx,
Rita C Workman
Honored Contributor

Re: unable to cancel print queue

Any chances of seeing this 'dumb script' file?
Not that that is the problem....but it would be nice to rule it out.

Tx,
Devbinder Singh Marway
Valued Contributor

Re: unable to cancel print queue

Have you got any files in /usr/spool/lp/request/ if so you can remove the entries in here. How
many lpcshed daemons have you got running , you can try lpshut and then checking lpsched processes killing them off and then restarting the printer daemon.

Regarding horizontal prints in your /etc/lp/interface/

try sending your file using the jet admin hpnpf ( command , search for it in interface file and run it on the command line )
also check model.orig/(printer name file) for entries in Init_variables section , things like numebr of lines, width etc..)
Seek and you shall find
Devbinder Singh Marway
Valued Contributor

Re: unable to cancel print queue

oops , you are using the dumb interface so you probably got a FILTER in the dumb interface script to use hpnpf program , and not a model.orig entry , so use the FILTER on command line to send a file to see what output you get , this will prove if anything is set in the interface file is causing any errors or whether the same ..

Also what application are you using to send prints to the printer and is this et up correctly ie. are any control codes , page size etc set up in the application .

You can disable the printer and see the output of the file in /usr/spool/lp/request //dA file to see if any additional characters are being inserted into the print file.
Seek and you shall find
Carlos Fernandez Riera
Honored Contributor

Re: unable to cancel print queue

do :
lpshut
cd /var/spool/lp/requests/yourprinter
rm *
lpsched

For each file printed lp create two files in that directory:
one for control and other whith data.

Removing all files in directory will empty your queue.

Removing



unsupported
Carlos Fernandez Riera
Honored Contributor

Re: unable to cancel print queue

do :
lpshut
cd /var/spool/lp/requests/yourprinter
rm *
lpsched

For each file printed lp create two files in that directory:
one for control and other whith data.

Removing all files in directory will empty your queue.

Removing



unsupported
Goh Cheng Chuan
Occasional Advisor

Re: unable to cancel print queue

hi,
there r no files in /var/spool/lp/request/ken & /usr/spool/lp/request/ken, so unable to try to remove the file still
Goh CC