Changeset 1814 for pykota/trunk
- Timestamp:
- 10/13/04 10:09:19 (20 years ago)
- Location:
- pykota/trunk
- Files:
-
- 6 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/autopykota
r1803 r1814 24 24 # 25 25 # $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 # 26 30 # Revision 1.6 2004/10/11 22:53:05 jalet 27 31 # Postponed string interpolation to help message's output method … … 93 97 def main(self, arguments, options) : 94 98 """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", "") 96 100 username = os.environ.get("PYKOTAUSERNAME") 97 101 printername = os.environ.get("PYKOTAPRINTERNAME") -
pykota/trunk/bin/papwaitprinter.sh
r1527 r1814 14 14 # $Id$ 15 15 # 16 PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/opt/bin 16 PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/opt/bin:/sbin:/usr/sbin 17 17 sleep 5; 18 18 until papstatus -p "$1" | grep -i idle >/dev/null ; do -
pykota/trunk/bin/pkhint
r1803 r1814 24 24 # 25 25 # $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 # 26 30 # Revision 1.19 2004/10/11 22:53:05 jalet 27 31 # Postponed string interpolation to help message's output method … … 143 147 144 148 SNMPTESTS = [ \ 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', \ 149 153 ] 150 154 151 155 NETPJLTESTS = [ \ 152 156 '/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', \ 154 158 ] 155 159 … … 188 192 WARNING : CUPS ONLY FOR NOW 189 193 """ 190 inp = os.popen(" /usr/sbin/lpinfo -v 2>/dev/null")194 inp = os.popen("lpinfo -v 2>/dev/null") 191 195 deviceslist = [l.strip() for l in inp.readlines()] 192 196 inp.close() … … 244 248 def main(self, args, options) : 245 249 """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", "") 246 251 sys.stderr.write("BEWARE : This tool doesn't support LPRng's printcap files yet.\n") 247 252 print _("\nPlease wait while pkhint analyzes your printing system's configuration...") … … 261 266 hostname = device 262 267 port = 9100 # TODO : may cause problems with other protocols. 263 264 268 265 269 snmpcommand = self.accepts(SNMPTESTS, hostname) -
pykota/trunk/bin/waitprinter.sh
r1731 r1814 22 22 # if it is idle, otherwise we could have problems with slow printers. 23 23 #-------------------------------------------------------------------------- 24 PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/opt/bin 24 PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/opt/bin:/sbin:/usr/sbin 25 25 #-------------------------------------------------------------------------- 26 26 LOG_FILE=/var/log/pykota-waitprinter-snmpread.log -
pykota/trunk/NEWS
r1807 r1814 22 22 PyKota NEWS : 23 23 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 24 31 - 1.20alpha24 : 25 32 -
pykota/trunk/pykota/version.py
r1806 r1814 22 22 # 23 23 24 __version__ = "1.20alpha2 4_unofficial"24 __version__ = "1.20alpha25_unofficial" 25 25 26 26 __doc__ = """PyKota : a complete Printing Quota Solution for CUPS and LPRng."""