I am trying to write a script witch cancels all
print jobs for all printers in cups.
I know cancel -a (printer name) cancels all print
jobs
and lpstat -a lists all printers in the form
(printer name) accepting requests.........
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.
reading up, awk seems to be the tool I should be
looking at.
Comments?
Rob Keeling
--
I love deadlines. I love the whooshing
noise they make as they go by.
|