S3LMGEB%SAE.TOWSON.EDU@OHSTVMA.ACS.OHIO-STATE.EDU (Eric Bennett) (05/29/91)
I am a relatively green Unix geek. I've been using the following to turn the printer off automatically without it "turning on so's that it can turn off". Aside from an occasional error message if something is printing (and once when the queue got stuck) it seems to work pretty well. If there is an easier way or better way to do this (or to do the update check) please tell me. #! /bin/csh # # /usr/adm/np0-off # # This script is run every half-hour by cron. It turns off # the np0 printer if it has been left on. # set ison=(`find /usr/spool/NeXT/Local_Printer/lock -newer /usr/adm/np0-off.time -print`) if $#ison then /usr/etc/nppower off touch /usr/adm/np0-off.time endif - Eric Eric Bennett s3lmgeb@sae.towson.edu "Pay me or I'll clobber you" - What is the fundamental difference between taxation and blackmail?