#!/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."
Shell script to add hp printers using HP printer utility
No TrackBacks
TrackBack URL: http://baldwinsung.com/cgi-bin/mt-tb.cgi/14
Leave a comment