cron output
When a redirect (">") is not used in a crontab statement (below), where does the output, messages, results etc go?
45 23 * * * /home/anpacadmin/scripts/medicare/chk4response17373 |
The output is endless to the user defined in the mailto variable, usually root by default. This can cause some ugly situations when scripts are quite noisy and can easily fill up filesystems over time.
|
In the below sample, is $HOME/backup.out mailed to dba?
#My Cron file.. User:MySQL #use /bin/sh to run commands, overriding the default SHELL=/bin/sh # # mail any output to `dba' MAILTO=dba # # fifteen minutes after midnight.. Backup it Up !!! 15 0 * * * $HOME/bin/backup.job >> $HOME/backup.out 2>&1 In my cron statement (previous post), I have no ">>", does that mean that there is nothing to mail? The output from the running a script goes? |
Should have included this in post, mailto variable is set to MAILTO=""
|
Quote:
Quote:
|
ok thanks
|
All times are GMT -5. The time now is 12:23 AM. |