Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

cancel won't cancel on lpstat

4 views
Skip to first unread message

Jeff Hyman

unread,
Nov 2, 2009, 12:06:07 PM11/2/09
to
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

Tony Lawrence

unread,
Nov 2, 2009, 1:07:49 PM11/2/09
to

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.

Jeffrey Hyman

unread,
Nov 2, 2009, 3:57:26 PM11/2/09
to
Tony,

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

Thanks again,
Jeff H

Tony Lawrence

unread,
Nov 2, 2009, 5:30:53 PM11/2/09
to
On Nov 2, 3:57 pm, 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       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 myhttp://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  :-)


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

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

Jean-Pierre Radley

unread,
Nov 2, 2009, 5:50:57 PM11/2/09
to
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 new messages