Startsrc only starts the daemons not the print que.
LSALLQ=`lsallq| grep -Ev "any queues you don't want started"`
lpstat -W | awk '{print $1,$2}' >/tmp/loadfont
for item in $LSALLQ
do
QUE=`grep $item /tmp/loadfont | awk '{print $1}'|head -1`
TYPE=`grep $item /tmp/loadfont | awk '{print $2}'|head -1`
enq -U -P$QUE
if [ $? -ne 0 ]; then
echo " $QUE NOT STARTED "
else
echo "$QUE HAS BEEN STARTED "
fi
done
rm /tmp/loadfont
fi
Try this Learn something everyday or you wasted a day of your life.
You also can try this command from console:
(login as root)
lpstat ---> a command to check all printer status
qadm -U'queue_name' ---> a command to activate the printer status from "down" to "ready".
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.