Mainpage
Searchform
History
Versions
Categories
Contents
Deutsch
/var/spool/csbwabi
.
/etc/printcap
to:
csbwabi:\ :sd=/var/spool/csbwabi:\ :rm=csbwabi:\ :rp=/tmp/wabiprint:\ :bk:sh:mx#0:
/usr/local/bin/wabiprint
:
#!/bin/sh # # by Ralf Burger 1997 - Inside-Internet Gmbh # http://www.ralfBurger.com # ralf@ralfburger.com # # dirty - und auch nicht besonders quick :) # # Druckt aus einem druckspooler-Verzeichnis per nprint # auf eine novell-printerque # # Wird benoetigt, damit wabi auf Novell-Printerques # drucken kann # # #/usr/local/bin/wabiprint # # cd /var/spool/csbwabi if test -s cf* ;then for ctlfile in cf* ; do grep "Udf" ${ctlfile}|tail -c 14 > /tmp/csbwabi.tmp read datafile < /tmp/csbwabi.tmp if test -n ${datafile} ; then nprint -S servername -U guest -P 12345 -q Q1 ${datafile} rm ${datafile} rm ${ctlfile} fi done fiOf course the servername, username password and printer queue are to be adjusted in it. See
man nprint
crontab -e
:
SHELL=/bin/sh PATH=/usr/bin:/usr/sbin:/sbin:/bin MAILTO=root * * * * * sh /usr/local/bin/wabiprint
Keywords: PRINT, PRINTER, WABI, NPRINT, NCPFS
Feedback welcome: Send Mail to skfr@suse.de (Please give the following subject: SDB-lp_wabi_nprint
)
Mainpage
Searchform
History
Versions
Categories
Contents
Deutsch