This article is from a FAQ concerning SCO operating
systems. While some of the information may be applicable to any OS,
or any Unix or Linux OS, it may be specific to SCO Xenix, Open
Desktop or Openserver.
There is lots of Linux, Mac OS X and general Unix info elsewhere on
this site: Search this site is the best
way to find anything.
The "lpadmin" command can add or modify printers without using SCOAdmin or "mkdev lp":
/usr/lib/lpadmin -p printer1 -v /dev/lp -m HPLaserJet
/usr/lib/accept printer1
enable printer1
/usr/lib/lpadmin -d printer1
/usr/lib/lpadmin -x printer1
There are other options to lpadmin; see the man page.
Xenix printers can be transferred with a script like this (which assumes that the Xenix hierarchy is located under "/xenixsys"):
cd /xenixsys/usr/spool/lp/member
for i in *
do
# make sure we aren't overwriting an existing model
if test -r /usr/spool/lp/model/$i
then
echo "Model $i already exists"
else
cp ../interface/$i /usr/spool/lp/model
/usr/lib/lpadmin -p $i -v `cat $i` -m $i
/usr/lib/accept $i
enable $i
fi
done
If you modify interfaces or devices of existing printers with lpadmin, you will have to do "/usr/lib/lpshut;/usr/lib/lpsched" to see the effects.
Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)
| Views for this page | ||||
|---|---|---|---|---|
| Today | This Week | This Month | This Year | Overall |
| 4 | 118 | 387 | 4,579 | 9,553 |
/SCOFAQ/FAQ_scotec7lpadmin.html copyright 1997-2003 (various) All Rights Reserved
Have you tried Searching this site?
Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.
Add your comments