FIX=$1 if [ "$FIX" = "" ] then print "Please Enter The Fix You want sent:\c" read FIX fi if [ "$2" = "" ] then FN=`mktemp` print "$FN created as a temporary template, will be removed upon" print "upon successful completion of sending the fix=$FIX" sleep 1 print " Welcome to mailfix ... Enter insert mode, cut & paste pmr-header & cus-page here: " >$FN vi $FN mailfix.exe $FN print " thanks, Newton Hammet (512) 823 - 9266 " >>$FN else FN=$2 fi vi $FN;tput clear;more $FN;echo echo "Do you want to mail the fix:$FIX? (enter y/n) "\\c read ANS if [ "$ANS" = "y" ] then mail -s mailit:$1 fixes@mariscal <$FN THEDATE=`date` print $THEDATE" ...mariscal was requested to send $FIX to:" >>fixes.sent cat <$FN | grep ":" >>fixes.sent echo 'mariscal requested to send: '$FIX echo rm $FN else print "mail -s mailit:$1 fixes@mariscal <$FN was not done!" fi