[cups.general] Re: Automatic Printer Restart?
Paul Ortman
portman at goshen.edu
Tue May 9 13:52:20 PDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Minatra, Pat H. wrote:
> This is exactly what I was going to do but I need to find a way to tell
> it if the printer is XYZ123 then skip it and go to the next one, in
> other words, I have at least one printer I need to leave down all the
> time and I just can't seem to figure out how to tell it to skip one.
>
> Wondering if anyone can jog my memory and help me understand how to do
> that please?
Wrap the call to 'enable' in a if statement:
for PRINTER in $PRINTERS
do
if [ $PRINTER != 'printer-name-i-dont-want-to-enable' ]
then
/usr/bin/enable $PRINTER
fi
done
- --
Paul Ortman
PGP Key: 55602C81
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQFEYQD/fw8KGlVgLIERAr+sAJ99sMelt5/ymltSMlwysc/NC5lokwCeJG75
rs41rdX5jyu9rY+wJTY7jd0=
=Whya
-----END PGP SIGNATURE-----
More information about the cups
mailing list