Changeset 1405

Show
Ignore:
Timestamp:
03/16/04 13:05:02 (20 years ago)
Author:
jalet
Message:

Small fix for new waitprinter.sh : when job was denied, would wait forever
for printer being in printing mode.

Location:
pykota/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r1400 r1405  
    2424# 
    2525# $Log$ 
     26# Revision 1.35  2004/03/16 12:05:01  jalet 
     27# Small fix for new waitprinter.sh : when job was denied, would wait forever 
     28# for printer being in printing mode. 
     29# 
    2630# Revision 1.34  2004/03/15 10:47:56  jalet 
    2731# This time the traceback formatting should be correct ! 
     
    240244        else :     
    241245            action = "ALLOW" 
     246            os.putenv("PYKOTAACTION", action) 
    242247             
    243248        # pass the job's data to the real backend     
  • pykota/trunk/bin/waitprinter.sh

    r1398 r1405  
    2424# the printer would effectively never print again if the previous job 
    2525# was already fully printed. 
    26 if [ x$PYKOTAPHASE == "xAFTER" ]; then 
     26if [ x$PYKOTAACTION != "xDENY" ] && [ x$PYKOTAPHASE == "xAFTER" ]; then 
    2727  until snmpget -v1 -c public -Ov $1 HOST-RESOURCES-MIB::hrPrinterStatus.1 | grep -i printing >/dev/null; do 
    2828   sleep 1 ; 
  • pykota/trunk/NEWS

    r1404 r1405  
    2424    - 1.18beta : 
    2525     
     26        - Small fix for new waitprinter.sh script 
     27         
    2628        - Better tracebacks on error conditions 
    2729