|
|
$echo "Status "`date`" successfully sent" >>JOB | $echo "Status "`date`" successfully sent" >>JOB |
| |
# update accounting log | # update accounting log |
$echo `dirname $job`"|$MAIL_TO|| $PHONE |0|"`date '+%Y%m%d %H:%M:%S`"|$AH|success" >>$FAX_ACCT |
$echo `dirname $job`"|$MAIL_TO|| $PHONE |0|"`date '+%Y%m%d %H:%M:%S'`"|$AH|success" >>$FAX_ACCT |
| |
# send mail, if requested | # send mail, if requested |
if [ -n "$do_mail_s" ] ; then | if [ -n "$do_mail_s" ] ; then |
|
|
if [ -n "$suspend" ] | if [ -n "$suspend" ] |
then | then |
# update accounting log (final) | # update accounting log (final) |
$echo `dirname $job`"|$MAIL_TO|| $PHONE |$status|"`date '+%Y%m%d %H:%M:%S`"|$AH|fail $status: $why" >>$FAX_ACCT |
$echo `dirname $job`"|$MAIL_TO|| $PHONE |$status|"`date '+%Y%m%d %H:%M:%S'`"|$AH|fail $status: $why" >>$FAX_ACCT |
| |
# send mail, if requested | # send mail, if requested |
if [ -n "$do_mail_f" ] ; then | if [ -n "$do_mail_f" ] ; then |
|
|
mv JOB JOB.suspended 2>/dev/null | mv JOB JOB.suspended 2>/dev/null |
else # do not delete job yet... | else # do not delete job yet... |
# update accounting log (intermediate) | # update accounting log (intermediate) |
$echo `dirname $job`"|$MAIL_TO|| $PHONE |-$status|"`date '+%Y%m%d %H:%M:%S`"|$AH|fail $status: $why" >>$FAX_ACCT |
$echo `dirname $job`"|$MAIL_TO|| $PHONE |-$status|"`date '+%Y%m%d %H:%M:%S'`"|$AH|fail $status: $why" >>$FAX_ACCT |
| |
# call update handler, if requested | # call update handler, if requested |
if [ -n "$exec_pgm_u" ] ; then | if [ -n "$exec_pgm_u" ] ; then |