End of mail input

From: Hergert, John <John.Hergert_at_vw.com>
Date: Thu, 02 Jul 1998 10:43:16 -0400

Greetings --

We have a little cron job that does backups every night and then sends
mail out to the admin staff as to the result. Its been running fine on 2
machines, but when we put it on a third, it hangs. This is the crontab
command line:

/oracle/AH2/backup.sapah2 2>&1 | mailx -s "SAP ahu018 Backup Log"
admins_at_vw.com

The problem appears to be a shell problem, because the 'backup' script
actually ends but for some reason the 'mailx' command never receives an
EOF and just hangs, waiting. If I send a HUP to the mailx process it
ends and sends the mail.

The job runs as root in a ksh, but the backup script runs as a csh.
Seems like IM missing something real simple here. Anyone have any ideas.

John Hergert
Volkswagen of America
Received on Thu Jul 02 1998 - 16:47:54 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT