Changeset 1706 for pykota/trunk/bin
- Timestamp:
- 09/07/04 16:17:19 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/waitprinter.sh
r1656 r1706 16 16 # Fix by Matt Hyclak & Jerome Alet 17 17 18 trap "KILLED=1" TERM 19 18 20 # If ending phase, after the job has been fully transmitted to the printer 19 21 # we have to wait for the printer being in printing mode before checking … … 22 24 if [ x$PYKOTAACTION != "xDENY" ] && [ x$PYKOTAPHASE = "xAFTER" ] ; then 23 25 until snmpget -v1 -c public -Ov $1 HOST-RESOURCES-MIB::hrPrinterStatus.1 | grep -i printing >/dev/null; do 24 sleep 1 ; 26 if [ "$KILLED" = 1 ]; then 27 break ; 28 fi 29 sleep 1 ; 25 30 done 26 31 fi … … 28 33 # In any case, wait until the printer is idle again. 29 34 until snmpget -v1 -c public -Ov $1 HOST-RESOURCES-MIB::hrPrinterStatus.1 | grep -i idle >/dev/null ; do 35 if [ "$KILLED" = 1 ]; then 36 break ; 37 fi 30 38 sleep 1 ; 31 39 done 32