killLP

creat in /usr/bin/killLP

chmod 755

#!/bin/sh
#:johncore
## usage killLP printer
###########################
if [ "$1" = "" ]
then
echo "usage: killLP printer_name"
exit
fi
cancel `lpstat -o | grep $1| awk ‘{print $1}’`
exit

Leave a Reply

Your email address will not be published. Required fields are marked *