#! /usr/bin/ksh
# dd_email_exceptions_print.shl      Script to Offer to Print dd_email Exceptions Only if Found

# /*Use this information and these scripts at your own risk. As a condition of using these scripts and information from this site, you agree to hold harmless both the University of Arkansas Cooperative Extension Service and Bruce Knox for any problems that they may cause or other situations that may arise from their use, and that neither the Extension Service nor I will be held liable for those consequences. The scripts and information are provided "as is" without warranty, implied or otherwise. Limitation of liability will be the amount paid to the University of Arkansas specifically for this information. (It was free:)
# */

if [ -s "/home/userhome/dd_email_exceptions.lst" ]
then
  echo
  echo 'Exceptions Found'
  echo
  echo "Print the Exception Notices Now? (y/n): \c"
  read ANS

  if [ "$ANS" = "Y" -o "$ANS" = "y" ]
   then
    echo
    echo "Printing"
    qprt -P ibmpcl -z0 -Q1 -p12 dd_email_exceptions.lst
  else
    echo
    echo "Do Not Print Now Selected"
  fi
fi

