Changeset 1814 for pykota/trunk

Show
Ignore:
Timestamp:
10/13/04 10:09:19 (20 years ago)
Author:
jalet
Message:

More complete PATH.
pkhint doesn't use absolute path to search for helper commands anymore.

Location:
pykota/trunk
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/autopykota

    r1803 r1814  
    2424# 
    2525# $Log$ 
     26# Revision 1.7  2004/10/13 08:09:19  jalet 
     27# More complete PATH. 
     28# pkhint doesn't use absolute path to search for helper commands anymore. 
     29# 
    2630# Revision 1.6  2004/10/11 22:53:05  jalet 
    2731# Postponed string interpolation to help message's output method 
     
    9397    def main(self, arguments, options) : 
    9498        """Main entry point.""" 
    95         os.environ["PATH"] = "%s:/bin:/usr/bin:/usr/local/bin:/opt/bin" % os.environ.get("PATH", "") 
     99        os.environ["PATH"] = "%s:/bin:/usr/bin:/usr/local/bin:/opt/bin:/sbin:/usr/sbin" % os.environ.get("PATH", "") 
    96100        username = os.environ.get("PYKOTAUSERNAME") 
    97101        printername = os.environ.get("PYKOTAPRINTERNAME") 
  • pykota/trunk/bin/papwaitprinter.sh

    r1527 r1814  
    1414# $Id$ 
    1515# 
    16 PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/opt/bin 
     16PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/opt/bin:/sbin:/usr/sbin 
    1717sleep 5; 
    1818until papstatus -p "$1" | grep -i idle >/dev/null ; do  
  • pykota/trunk/bin/pkhint

    r1803 r1814  
    2424# 
    2525# $Log$ 
     26# Revision 1.20  2004/10/13 08:09:19  jalet 
     27# More complete PATH. 
     28# pkhint doesn't use absolute path to search for helper commands anymore. 
     29# 
    2630# Revision 1.19  2004/10/11 22:53:05  jalet 
    2731# Postponed string interpolation to help message's output method 
     
    143147         
    144148SNMPTESTS = [ \ 
    145               '/usr/bin/npadmin --pagecount %(printer)s 2>/dev/null', \ 
    146               '/usr/bin/snmpget -v1 -c public -Ov %(printer)s mib-2.43.10.2.1.4.1.1 2>/dev/null | cut -f 2,2 -d " "', \ 
    147               '/usr/bin/snmpwalk -v 1 -Cc -c public %(printer)s 2>/dev/null | grep mib-2.43.10.2.1.4.1.1 | cut -d " " -f4', \ 
    148               '/usr/bin/snmpwalk -v 1 -Cc -c public -Ov %(printer)s 2>/dev/null | grep Counter32 | tail -2 | head -1 | cut -d " " -f2', \ 
     149              'npadmin --pagecount %(printer)s 2>/dev/null', \ 
     150              'snmpget -v1 -c public -Ov %(printer)s mib-2.43.10.2.1.4.1.1 2>/dev/null | cut -f 2,2 -d " "', \ 
     151              'snmpwalk -v 1 -Cc -c public %(printer)s 2>/dev/null | grep mib-2.43.10.2.1.4.1.1 | cut -d " " -f4', \ 
     152              'snmpwalk -v 1 -Cc -c public -Ov %(printer)s 2>/dev/null | grep Counter32 | tail -2 | head -1 | cut -d " " -f2', \ 
    149153            ] 
    150154             
    151155NETPJLTESTS = [ \ 
    152156                '/usr/share/pykota/pagecount.pl %(printer)s %(port)s 2>/dev/null', \ 
    153                 '/bin/nc -w 2 %(printer)s %(port)s </usr/share/pykota/pagecount.pjl 2>/dev/null | /usr/bin/tail -2', \ 
     157                'nc -w 2 %(printer)s %(port)s </usr/share/pykota/pagecount.pjl 2>/dev/null | tail -2', \ 
    154158              ] 
    155159               
     
    188192           WARNING : CUPS ONLY FOR NOW 
    189193        """    
    190         inp = os.popen("/usr/sbin/lpinfo -v 2>/dev/null") 
     194        inp = os.popen("lpinfo -v 2>/dev/null") 
    191195        deviceslist = [l.strip() for l in inp.readlines()] 
    192196        inp.close() 
     
    244248    def main(self, args, options) : 
    245249        """Main work is done here.""" 
     250        os.environ["PATH"] = "%s:/bin:/usr/bin:/usr/local/bin:/opt/bin:/sbin:/usr/sbin" % os.environ.get("PATH", "") 
    246251        sys.stderr.write("BEWARE : This tool doesn't support LPRng's printcap files yet.\n") 
    247252        print _("\nPlease wait while pkhint analyzes your printing system's configuration...") 
     
    261266                        hostname = device 
    262267                        port = 9100             # TODO : may cause problems with other protocols. 
    263                          
    264268                         
    265269                    snmpcommand = self.accepts(SNMPTESTS, hostname) 
  • pykota/trunk/bin/waitprinter.sh

    r1731 r1814  
    2222# if it is idle, otherwise we could have problems with slow printers. 
    2323#-------------------------------------------------------------------------- 
    24 PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/opt/bin 
     24PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/opt/bin:/sbin:/usr/sbin 
    2525#-------------------------------------------------------------------------- 
    2626LOG_FILE=/var/log/pykota-waitprinter-snmpread.log 
  • pykota/trunk/NEWS

    r1807 r1814  
    2222PyKota NEWS : 
    2323 
     24    - 1.20alpha25 : 
     25     
     26        - pkhint doesn't use absolute path to search for helper commands 
     27          anymore. 
     28           
     29        - Spanish translation ready for 1.20.    
     30         
    2431    - 1.20alpha24 : 
    2532     
  • pykota/trunk/pykota/version.py

    r1806 r1814  
    2222# 
    2323 
    24 __version__ = "1.20alpha24_unofficial" 
     24__version__ = "1.20alpha25_unofficial" 
    2525 
    2626__doc__ = """PyKota : a complete Printing Quota Solution for CUPS and LPRng."""