Shell script to add hp printers using HP printer utility

| 0 Comments | 0 TrackBacks
#!/bin/ksh echo "adding queues to local spooler" /opt/hpnpl/hppi -addq -q sa_1 -h sa_1 /opt/hpnpl/hppi -addq -q lab1_1 -h lab1_1 /opt/hpnpl/hppi -addq -q lab2_1 -h lab2_1 /opt/hpnpl/hppi -addq -q admin1_1 -h admin1_1 /opt/hpnpl/hppi -addq -q admin2_1 -h admin2_1 echo "finished." echo "executing lpstat -s" lpstat -s echo "adding default of admin1_1..." echo " " >> /etc/printers.conf echo "_default:\\" >> /etc/printers.conf echo " :use=admin1_1:" >> /etc/printers.conf echo "completed." 

No TrackBacks

TrackBack URL: http://baldwinsung.com/cgi-bin/mt-tb.cgi/14

Leave a comment

Recent Entries

Test
Test…
I just finished installing Movable Type 4!
Welcome to my new blog powered by Movable Type. This is the first post on my blog and was created…
New design launched using Movable Type
Our web site is sporting a new look and feel thanks to Movable Type and the Professional Template Set.…