Changeset 2609

Show
Ignore:
Timestamp:
01/05/06 16:31:39 (19 years ago)
Author:
jerome
Message:

Insufficient permission to run a command now exits with status -2.
Error in command line options now exits with status -2.
Processing interrupted with Ctrl+C (or SIGTERM) now exits with status -3.

Location:
pykota/trunk
Files:
15 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/autopykota

    r2512 r2609  
    120120    except KeyboardInterrupt :         
    121121        sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
     122        retcode = -3 
    122123    except PyKotaCommandLineError, msg :     
    123124        sys.stderr.write("%s : %s\n" % (sys.argv[0], msg)) 
     125        retcode = -2 
    124126    except SystemExit :         
    125127        pass 
  • pykota/trunk/bin/dumpykota

    r2600 r2609  
    161161    except KeyboardInterrupt :         
    162162        sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
     163        retcode = -3 
    163164    except PyKotaCommandLineError, msg :     
    164165        sys.stderr.write("%s : %s\n" % (sys.argv[0], msg)) 
     166        retcode = -2 
    165167    except SystemExit :         
    166168        pass 
  • pykota/trunk/bin/edpykota

    r2515 r2609  
    613613    except KeyboardInterrupt :         
    614614        sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
     615        retcode = -3 
    615616    except PyKotaCommandLineError, msg :      
    616617        sys.stderr.write("%s : %s\n" % (sys.argv[0], msg)) 
     618        retcode = -2 
    617619    except SystemExit :         
    618620        pass 
  • pykota/trunk/bin/pkbanner

    r2512 r2609  
    312312    except KeyboardInterrupt :         
    313313        sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
     314        retcode = -3 
    314315    except PyKotaCommandLineError, msg :     
    315316        sys.stderr.write("%s : %s\n" % (sys.argv[0], msg)) 
     317        retcode = -2 
    316318    except SystemExit :         
    317319        pass 
  • pykota/trunk/bin/pkbcodes

    r2554 r2609  
    167167    except KeyboardInterrupt :         
    168168        sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
     169        retcode = -3 
    169170    except PyKotaCommandLineError, msg :     
    170171        sys.stderr.write("%s : %s\n" % (sys.argv[0], msg)) 
     172        retcode = -2 
    171173    except SystemExit :         
    172174        pass 
  • pykota/trunk/bin/pkmail

    r2512 r2609  
    159159    except KeyboardInterrupt :         
    160160        sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
     161        retcode = -3 
    161162    except PyKotaCommandLineError, msg :     
    162163        sys.stderr.write("%s : %s\n" % (sys.argv[0], msg)) 
     164        retcode = -2 
    163165    except SystemExit :         
    164166        pass 
  • pykota/trunk/bin/pkprinters

    r2512 r2609  
    264264    except KeyboardInterrupt :         
    265265        sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
     266        retcode = -3 
    266267    except PyKotaCommandLineError, msg :     
    267268        sys.stderr.write("%s : %s\n" % (sys.argv[0], msg)) 
     269        retcode = -2 
    268270    except SystemExit :         
    269271        pass 
  • pykota/trunk/bin/pkturnkey

    r2512 r2609  
    492492    except KeyboardInterrupt :         
    493493        sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
     494        retcode = -3 
    494495    except PyKotaCommandLineError, msg :     
    495496        sys.stderr.write("%s : %s\n" % (sys.argv[0], msg)) 
     497        retcode = -2 
    496498    except SystemExit :         
    497499        pass 
  • pykota/trunk/bin/pykoef

    r2572 r2609  
    131131    except KeyboardInterrupt :         
    132132        sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
     133        retcode = -3 
    133134    except PyKotaCommandLineError, msg :     
    134135        sys.stderr.write("%s : %s\n" % (sys.argv[0], msg)) 
     136        retcode = -2 
    135137    except SystemExit :         
    136138        pass 
  • pykota/trunk/bin/pykosd

    r2544 r2609  
    194194    except KeyboardInterrupt :         
    195195        sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
     196        retcode = -3 
    196197    except PyKotaCommandLineError, msg :     
    197198        sys.stderr.write("%s : %s\n" % (sys.argv[0], msg)) 
     199        retcode = -2 
    198200    except SystemExit :         
    199201        pass 
  • pykota/trunk/bin/pykotme

    r2524 r2609  
    151151    except KeyboardInterrupt :         
    152152        sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
     153        retcode = -3 
    153154    except PyKotaCommandLineError, msg :     
    154155        sys.stderr.write("%s : %s\n" % (sys.argv[0], msg)) 
     156        retcode = -2 
    155157    except SystemExit :         
    156158        pass 
  • pykota/trunk/bin/repykota

    r2512 r2609  
    160160    except KeyboardInterrupt :         
    161161        sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
     162        retcode = -3 
    162163    except PyKotaCommandLineError, msg :     
    163164        sys.stderr.write("%s : %s\n" % (sys.argv[0], msg)) 
     165        retcode = -2 
    164166    except SystemExit :         
    165167        pass 
  • pykota/trunk/bin/warnpykota

    r2547 r2609  
    160160    except KeyboardInterrupt :         
    161161        sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
     162        retcode = -3 
    162163    except PyKotaCommandLineError, msg :     
    163164        sys.stderr.write("%s : %s\n" % (sys.argv[0], msg)) 
     165        retcode = -2 
    164166    except SystemExit :         
    165167        pass 
  • pykota/trunk/NEWS

    r2605 r2609  
    2222PyKota NEWS : 
    2323        
     24    - 1.24alpha6 : 
     25     
     26        - Now command line errors and Ctrl+C repectively cause 
     27          PyKota commands to exit with status -2 and -3. 
     28           
    2429    - 1.24alpha5 : 
    2530     
  • pykota/trunk/pykota/version.py

    r2600 r2609  
    2222# 
    2323 
    24 __version__ = "1.24alpha5_unofficial" 
     24__version__ = "1.24alpha6_unofficial" 
    2525 
    2626__doc__ = "PyKota : a complete Printing Quota Solution for CUPS."