[cups.general] Stop all jobs, NOW!

Chris McKeever techjedi at gmail.com
Mon Aug 30 09:01:37 PDT 2004


On Mon, 30 Aug 2004 17:42:04 +0200, Felix E. Klee <felix.klee at inka.de> wrote:
> Hi,
> 
> I wonder if there is a stable and non-complicated way to kill
>    kill all print jobs on all printers
> and
>    kill all processes accessing print devices.

lprm.cups - `lpstat.cups -p | awk '{print $2}'`

> This may leave the printers in an inconsistent state. But that flaw is
> acceptable and even somewhat intended (better stop now, than print more
> pages).
> 
> For users with only one printer connected to /dev/lp0, the following
> script is acceptable:
> 
>    #!/bin/sh
>    lprm -
>    fuser -k /dev/lp0
> 
> But, I want a solution that works with all configurations.
> 
> Any ideas?
> 
> Felix
> 
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups
>





More information about the cups mailing list