Results 1 to 1 of 1
Linux Expert,
Please help! I am cronning a bash script and need the exit status of the script in the subject line of the email that gets sent (using MAILTO ...
- 07-01-2010 #1Just Joined!
- Join Date
- Jul 2010
- Posts
- 4
Need Exit Status in Cron Email Subject Line
Linux Expert,
Please help! I am cronning a bash script and need the exit status of the script in the subject line of the email that gets sent (using MAILTO command in the crontab). This is standard with AIX, but apparantly is not with Linux (Red hat).
Here is an example of my desired output:
Output from cron job /mnt/khimetrics/DMQA/scripts/alert_weekend.sh, pdadm'at symbol'psnwqa01, exit status 0
Here is the default output I am receiving which does not include exit status:
Cron <pdadm'at symbol'psnwqa01> /mnt/khimetrics/DMQA/scripts/alert_weekend.sh
Thanks in advance for your help...
Marcelle
p.s. 'at symbol' is really the symbol for at but could not post this with the symbol since i'm a new member


Reply With Quote