Changeset 1398

Show
Ignore:
Timestamp:
03/10/04 08:20:03 (20 years ago)
Author:
jalet
Message:

More powerful waitprinter.sh

Location:
pykota/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/waitprinter.sh

    r1341 r1398  
    1414# $Id$ 
    1515# 
    16 # Fix by Matt Hyclak : 
    17 sleep 5 
    18 # 
     16# Fix by Matt Hyclak & Jerome Alet 
     17 
     18# If ending phase, after the job has been fully transmitted to the printer 
     19# we have to wait for the printer being in printing mode before checking 
     20# if it is idle, otherwise we could have problems with slow printers. 
     21# When using the pykota filter, PYKOTAPHASE is not defined at the 
     22# first requesting stage (which is the ending phase of the previous 
     23# job), because waiting for the printer being printing wouldn't be OK : 
     24# the printer would effectively never print again if the previous job 
     25# was already fully printed. 
     26if [ x$PYKOTAPHASE == "xAFTER" ]; then 
     27  until snmpget -v1 -c public -Ov $1 HOST-RESOURCES-MIB::hrPrinterStatus.1 | grep -i printing >/dev/null; do 
     28   sleep 1 ; 
     29  done 
     30fi 
     31 
     32# In any case, wait until the printer is idle again. 
    1933until snmpget -v1 -c public -Ov $1 HOST-RESOURCES-MIB::hrPrinterStatus.1 | grep -i idle >/dev/null ; do  
    20    sleep 1 ;  
     34  sleep 1 ; 
    2135done 
    2236 
  • pykota/trunk/NEWS

    r1396 r1398  
    2323 
    2424    - 1.18alpha15 : 
     25 
     26        - waitprinter.sh replaced by a new and possibly faster 
     27          and more powerful one. 
    2528     
    2629        - Names can now begin with a digit. 
    2730         
    28         - Small fix for quotas set on printers groups. 
     31        - Stability improvement for quotas set on printers groups. 
    2932         
    3033    - 1.18alpha14 :