segunda-feira, março 07, 2011

Monitoramento do CUPS

01 #! /bin/sh
02
03 while true
04 do
05
06 lpq ‐Plp | grep ‐q "lp is ready"
07
08 if [ $? ‐gt 0 ]
09 then
10 cupsenable lp
11 if
12
13 sleep 15
14
15 done