Changeset 1345 for pykota/trunk/conf
- Timestamp:
- 02/12/04 23:43:58 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/conf/pykota.conf.sample
r1337 r1345 241 241 # or more simply : 242 242 # 243 # mailto: external(/usr/ bin/mailandpopup.sh %(username)s %(printername)s "%(email)s" "%(message)s" 2>&1 >/dev/null)243 # mailto: external(/usr/share/pykota/mailandpopup.sh %(username)s %(printername)s "%(email)s" "%(message)s" 2>&1 >/dev/null) 244 244 # 245 245 # NB : The mailandpopup.sh shell script is now included in PyKota … … 327 327 # pagecount.ps file from untested/netatalk into /etc or any 328 328 # appropriate location) 329 # requester: external(/usr/ bin/papwaitprinter.sh "MyPrinter:LaserWriter@*" && /usr/bin/pap -p "MyPrinter:LaserWriter@*" /etc/pagecount.ps 2>/dev/null | grep -v status | grep -v Connect |tail -1)329 # requester: external(/usr/share/pykota/papwaitprinter.sh "MyPrinter:LaserWriter@*" && /usr/bin/pap -p "MyPrinter:LaserWriter@*" /usr/share/pykota/pagecount.ps 2>/dev/null | /bin/grep -v status | /bin/grep -v Connect | /usr/bin/tail -1) 330 330 # 331 331 # An example for parallel printers like the HP Laserjet 5MP : 332 332 # 333 # requester: external(/bin/cat /usr/share/pykota/ untested/pjl/pagecount.pjl >/dev/lp0 && /usr/bin/head -2 </dev/lp0 | /usr/bin/tail -1)333 # requester: external(/bin/cat /usr/share/pykota/pagecount.pjl >/dev/lp0 && /usr/bin/head -2 </dev/lp0 | /usr/bin/tail -1) 334 334 # 335 335 # … … 360 360 # server on port 9100 : 361 361 # 362 # requester: external(/bin/nc -w 2 %(printer)s 9100 < pagecount.pjl | /usr/bin/tail -2)362 # requester: external(/bin/nc -w 2 %(printer)s 9100 </usr/share/pykota/pagecount.pjl | /usr/bin/tail -2) 363 363 # 364 364 # … … 366 366 # the same as above, but should work on more printers : 367 367 # 368 # requester: external(/usr/ bin/pagecount.pl %(printer)s 9100)368 # requester: external(/usr/share/pykota/pagecount.pl %(printer)s 9100) 369 369 # 370 370 # … … 376 376 # not yet finished (not all pages are printed, but the complete job is in 377 377 # the printer) 378 requester: external(/usr/ bin/waitprinter.sh %(printer)s && /usr/bin/snmpget -v1 -c public -Ov %(printer)s mib-2.43.10.2.1.4.1.1 | cut -f 2,2 -d " ")378 requester: external(/usr/share/pykota/waitprinter.sh %(printer)s && /usr/bin/snmpget -v1 -c public -Ov %(printer)s mib-2.43.10.2.1.4.1.1 | cut -f 2,2 -d " ") 379 379 380 380 # Default policy for inexistant users (e.g. root)