Sunday, June 28, 2015


#!/bin/ksh
# Send print job to the print server.
COUNT=`ls | wc -l`
TOTAL=$COUNT
for i in `ls`
do
clear
echo " $COUNT prints left"
COUNT=`expr $COUNT - 1`
cat $i | acroread -toPostScript -size letter | ssh -l samb \
printserv "/usr/ucb/lpr -P192.168.20.125:postscriptd"
done
echo "There are $TOTAL files printed in this batch"
# EOF

No comments:

Post a Comment