cancel won't cancel on lpstat

  • Follow


Hello,

SCO 5.0.6
# lpstat -t | tail -1
hpjet-86903       root        1446   Oct 08 20:44
# cancel hpjet-86903
UX: cancel: WARNING: Request "hpjet-86903" is done.
             TO FIX: It's to late to do anything with it.

If the que is done, why is it displaying?
Any way to get rid of the message? ... or clear the que?

TIA,
Jeff H

0
Reply Jeff 11/2/2009 5:06:07 PM

On Nov 2, 12:06=A0pm, Jeff Hyman <j...@cactus.com> wrote:
> Hello,
>
> SCO 5.0.6
> # lpstat -t | tail -1
> hpjet-86903 =A0 =A0 =A0 root =A0 =A0 =A0 =A01446 =A0 Oct 08 20:44
> # cancel hpjet-86903
> UX: cancel: WARNING: Request "hpjet-86903" is done.
> =A0 =A0 =A0 =A0 =A0 =A0 =A0TO FIX: It's to late to do anything with it.
>
> If the que is done, why is it displaying?
> Any way to get rid of the message? ... or clear the que?

You can always clear jobs manually.  Stop the spooler

/usr/lib/lpshut

Then head to the spool dir:

cd /usr/spool/lp/temp


In there you'll see *-0 and *-1 files and a few other files that you
don't want to remove.   If you look at the -0 files, you'll see that
they describe the job - find the one you want and delete it and any -1
file asscociated.  Then restart the spooler:

/usr/lib/lpsched

You might want to read my http://aplawrence.com/SCOFAQ/FAQ_scotec7interface=
script.html
also, just for general knowledge.

0
Reply Tony 11/2/2009 6:07:49 PM


Tony Lawrence wrote:
> On Nov 2, 12:06 pm, Jeff Hyman <j...@cactus.com> wrote:
>   
>> Hello,
>>
>> SCO 5.0.6
>> # lpstat -t | tail -1
>> hpjet-86903       root        1446   Oct 08 20:44
>> # cancel hpjet-86903
>> UX: cancel: WARNING: Request "hpjet-86903" is done.
>>              TO FIX: It's to late to do anything with it.
>>
>> If the que is done, why is it displaying?
>> Any way to get rid of the message? ... or clear the que?
>>     
>
> You can always clear jobs manually.  Stop the spooler
>
> /usr/lib/lpshut
>
> Then head to the spool dir:
>
> cd /usr/spool/lp/temp
>
>
> In there you'll see *-0 and *-1 files and a few other files that you
> don't want to remove.   If you look at the -0 files, you'll see that
> they describe the job - find the one you want and delete it and any -1
> file asscociated.  Then restart the spooler:
>
> /usr/lib/lpsched
>
> You might want to read my http://aplawrence.com/SCOFAQ/FAQ_scotec7interfacescript.html
> also, just for general knowledge.
>
>
>
>   
Tony,

   That did the trick.  I knew this many moons ago and forgot about it  :-)

Thanks again,
Jeff H
0
Reply Jeffrey 11/2/2009 8:57:26 PM

On Nov 2, 3:57=A0pm, Jeffrey Hyman <j...@cactus.com> wrote:
> Tony Lawrence wrote:
> > On Nov 2, 12:06 pm, Jeff Hyman <j...@cactus.com> wrote:
>
> >> Hello,
>
> >> SCO 5.0.6
> >> # lpstat -t | tail -1
> >> hpjet-86903 =A0 =A0 =A0 root =A0 =A0 =A0 =A01446 =A0 Oct 08 20:44
> >> # cancel hpjet-86903
> >> UX: cancel: WARNING: Request "hpjet-86903" is done.
> >> =A0 =A0 =A0 =A0 =A0 =A0 =A0TO FIX: It's to late to do anything with it=
..
>
> >> If the que is done, why is it displaying?
> >> Any way to get rid of the message? ... or clear the que?
>
> > You can always clear jobs manually. =A0Stop the spooler
>
> > /usr/lib/lpshut
>
> > Then head to the spool dir:
>
> > cd /usr/spool/lp/temp
>
> > In there you'll see *-0 and *-1 files and a few other files that you
> > don't want to remove. =A0 If you look at the -0 files, you'll see that
> > they describe the job - find the one you want and delete it and any -1
> > file asscociated. =A0Then restart the spooler:
>
> > /usr/lib/lpsched
>
> > You might want to read myhttp://aplawrence.com/SCOFAQ/FAQ_scotec7interf=
acescript.html
> > also, just for general knowledge.
>
> Tony,
>
> =A0 =A0That did the trick. =A0I knew this many moons ago and forgot about=
 it =A0:-)


I'd hate to think how many things I've forgotten.

But then again, I won't - because I've forgotten them :-)

0
Reply Tony 11/2/2009 10:30:53 PM

Tony Lawrence typed (on Mon, Nov 02, 2009 at 02:30:53PM -0800):
| 
| I'd hate to think how many things I've forgotten.
| 
| But then again, I won't - because I've forgotten them :-)

Reminds me of one out of a collection of "Idiot Sightings" someone
sent me:

        I was at the airport, checking in at the gate when an airport
        employee asked, "Has anyone put anything in your baggage without
        your knowledge?" To which I replied, "If it was without my
        knowledge, how would I know?" He smiled knowingly and nodded,
        "That's why we ask."


-- 
JP
0
Reply Jean 11/2/2009 10:50:57 PM

4 Replies
853 Views

(page loaded in 0.819 seconds)

Similiar Articles:













7/24/2012 2:24:02 AM


Reply: