# today's is appended to yesterday's and we continue working with that.
PATH=/bin:/bin/athena:/usr/ucb:/usr/bin/athena:/usr/athena; export PATH
-printer=nil
+printer=linus
newfile=/tmp/letter.out
savefile=/u1/letter.save
+holdfile=/u1/letter.hold
# These are not normally local, so may need to point somewhere else
lpquota=lpquota
mv $newfile $savefile
else
if [ -s $savefile ]; then
+ if [ ! -f $holdfile ]; then
+ (echo "Reg_extra letters failed to print yesterday"; \
+ ls -l $savefile; \
+ echo $last) | /bin/mail dbadmin thorne
+ fi
cat $newfile >> $savefile
- echo "Reg_extra letter printing error" | /bin/mail dbadmin
else
mv $newfile $savefile
fi
fi
+rm -f $holdfile
-$lpr -P$printer -h $savefile
+if [ "`$lpr -P$printer -h $savefile`"x = "Printer queue is disabled."x ]; then
+ touch $holdfile
+fi
exit 0