Report of sending file to printer at bootup

Anne B Wittke wittke at Outlaw.UWyo.Edu
Thu Jun 28 07:28:49 AEST 1990


Regarding downloading a file to a printer at boot time; thanks for all the
suggestions!

Here's a summary:
1) Using a shell script in rc.local which sleeps before sending the file
   (didn't work)
2) Editing /etc/inittab (that file doesn't exist on our computers)
3) Never turning off the printer (are you kidding? The local electric
   company isn't called Pathetic Power for nothing...)
4) Using full pathnames (sure, can't hurt)
5) Sending file after lpd started, which meant putting the lpr command
   in rc instead of rc.local

What I did was put the lines:
   /usr/ucb/lpr -Pwy_laser /usr/users/local/csdict.ps
   lpc topq wy_laser root
at the end of /etc/rc, and this did the trick.  Topq was used because there
could be jobs already sitting in the queue waiting to be printed.

-Anne



More information about the Comp.unix.questions mailing list