TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

/etc/printcap and nprint



Ok, I've given up on printtool setting up my netware printers for me, so I
though I'd set them up manually.

The following commands sucessful print to my netware printer:

nprint -S ETIENNE -q quenename postscriptfile.ps

cat postscriptfile.ps |nprint -S ETIENNE -q queuename -


My /etc/printcap is:

write:\
        :sd=/var/spool/lpd/write:\
        :mx#0:\
        :sh:\
        :if=/var/spool/lpd/write/ben:\
        :af=/var/spool/lpd/write/acct:\
        :lp=/dev/null:                      

and /var/spool/lpd/write/ben is:

#!/bin/sh
#cat |nprint -S ETIENNE -q PUBLIC_WILLIS_LAB_LJ_4SI -
cat >/tmp/write.print.$$
nprint -S ETIENNE -q PUBLIC_WILLIS_LAB_LJ_4SI /tmp/write.print.$$
rm -f /tmp/write.print.$$


When I comment out the rm -f I notice that there are four
/tmp/write.print.XXXXX files, which means it is running the script 4
times? 

cat postscriptfile.ps |lpr -Pwrite

does not do anything. Any ideas? I checked and the /tmp/write.print.$$ is
identical to the postscript file. Any ideas?

Thanks,

Ben






Ben Luey
lueyb@carleton.edu
ICQ: 19144397

We have no discipline in this bureaucracy. We never fire anybody. We never
reprimand anybody. We never demote anybody. We always promote the 
sons-of-bitches that kick us in the ass.      -- Richard Nixon