[ articles_application_development ] Setting Up Netcat Printers
A.P. Lawrence Contributing Writer
2003-06-16
Insider Reports RSS Feed
Boy, I like netcat. Just finished converting one client's SCO 5.0.5 system from Berkeley LPD to netcat and recommend the change to anyone now using LPD to print to dedicated print servers.
I cobbled the following script to parse the /etc/printers file and automatically setup one or all printers. I also include my version of HPLaserJet.net supporting duplex enable printers, 66 line portrait and 66 line landscape as well as 88 line 16.6cpi portrait.
Click Here to See the code.
printeradmin writes its output to standardout and does not execuite the commands. I just run printeradmin > /tmp/doit and then "sh /tmp/doit" after I page /tmp/doit to see that it's correct.
Once I am comfortable with the output of printeradmin, I just run printeradmin options | sh to skip the step of outputting to a temporary file and then using sh to execute the file.
Click Here to See the code.
The comment field was added and these comments appear as printer comments with the scoadmin printer screen.
Please Read This Disclaimer
Copyright and Reprint Info
About the Author:
A.P. Lawrence provides SCO Unix and Linux consulting services http://www.pcunix.com
More articles_application_development Articles
Insider Reports RSS Feed
|
|