>>I'm trying to capture the output of crontab entries.It's by default trying to send a mail to the user who's executing it
That's how it behave.
You can modify the script/ crontask to send the email to whoever you want, then pipe
stdout, and stderr to /dev/null
eg in your script, you put:
SUPERVISOR="root, you@somewhere"
....
mail ${SUPERVISOR} < $LOGFILE
and make your crontable looks like:
5 * * * * /path-to/yourscript >/dev/null 2>&1
also have a look at this nice cron FAQ:
http://216.147.18.102/unix
Main Topics
Browse All Topics





by: catchmeifuwantPosted on 2005-08-31 at 23:41:20ID: 14799794
The reason I want to send it to some other e-mail is, mailbox is not set (???) for the user who's executing it. So, if I can set a mailbox atleast this should be resolved :-)