[comp.os.vms] STOP/QUEUE

PJS@NAIF.JPL.NASA.GOV (Peter Scott) (05/21/88)

>unmvax!charon!sdowdy@ucbvax.Berkeley.EDU says:

>Does anyone know of a way to *really* delete a print queue on a spooled
>device?

>Up to this point the only way i can get the queue deleted is by:
>	1) $ stop <queue>
>	2) pid = f$getdvi(<queue_device>,"PID")	! get symbiont PID
>	3) Stop/Id='pid'			! Kill the symbiont
>	4) Delete/Queue <queue>

>i need to delete the queue to modify parameters on the spooled device via
>SET TERM, or just to move the print queue to another device (having a
>DZ blowup recently, and moving the line...)

Well, first of all, STOP/QUEUE <queue> only "pauses" a queue.  If you really
want to clobber it, use STOP/QUEUE/RESET (the purpose of pausing a queue
is to change ribbons, etc).  Then you can delete the queue, which usually
kills the symbiont anyway, although hopefully that won't happen if it's
multiply threaded.  The method you came up wilh above is novel, but perhaps
with undesirable side-effects.

However, I think there is a way to move all the jobs to a new queue using
the ASSIGN/QUEUE command.  Can't say for sure; haven't tried it.

Peter Scott (pjs%grouch@jpl-mil.jpl.nasa.gov)

tpmsph@ecsvax.UUCP (Thomas P. Morris) (05/27/88)

> >unmvax!charon!sdowdy@ucbvax.Berkeley.EDU says:
> 
> >Does anyone know of a way to *really* delete a print queue on a spooled
> >device?
> 
> >i need to delete the queue to modify parameters on the spooled device via
> >SET TERM, or just to move the print queue to another device (having a
> >DZ blowup recently, and moving the line...)

Huh? You shouldn't need to delete a queue to change the parameters on
the spooled device! If you do a STOP/QUEU/NEXT or STOP/QUEUE/RESET
and then do a SET DEV/NOSPOOL <dev>, then change the params you need
to change (remembering you need PHY_IO to make them /PERM), then you
just do a SET DEV/SPOOL=(x,y) <dev>, and then START/QUEU.  Now,
if you need to move the print queue to another device, you should be
able to do a START/QUEUE/ON=devname (or maybe that's an INIT/QUEUE/DEV/ON=).
I've done this more times than I care to recall, but I don't think I've
ever had to delete the queue!

-----------------------------------------------------------------------------
Tom Morris                                 BITNET: TOM@UNCSPHVX
UNC School of Public Health                UUCP  : ...!mcnc!ecsvax!tpmsph
-----------------------------------------------------------------------------
-- 
-----------------------------------------------------------------------------
Tom Morris                                 BITNET: TOM@UNCSPHVX
UNC School of Public Health                UUCP  : ...!mcnc!ecsvax!tpmsph
-----------------------------------------------------------------------------