[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] Canceling Print jobs...



On Thu, 2003-10-16 at 10:00, Rob Keeling wrote:
> So, if I could take the output from lpstat -a, discard everything
> after the first space, to give a list of printer names,
> and then run cancel -a for each name I would be in buissness. However,
> I don`t know how to go about it.

lpstat -a | cut -d ' ' -f 1 - | xargs -l1 cancel -a

Cheers,

Alex.


___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.