How to avoid mail from at scheduled job?
How do avoid getting a mail with the output from scheduled tasks?
I have this script that runs at different intervals. To do this it reschedules itself with the at command, like this: Code:
echo $COMMAND | at now + <interval> Thanks. I'm sorry if this question has been asked before, but I wasn't able to get any meaningful search results. |
Just redirect the output to /dev/null, youll never hear from it again... (;
Code:
echo "$COMMAND > /dev/null" | at now + <interval> Code:
echo "$COMMAND > /dev/null 2>&1" | at now + <interval> |
Thanks, you led me onto the right track...
Although your redirection-suggestions doesn't actually work as I intended... The message I kept getting was the output from the at command, so to avoid the mails, the command must be like this: Code:
echo "$COMMAND" | at now + <interval> > /dev/null 2>&1 |
Oooh, now it hit me, yeah now I understand what you actually meant.. hehe.. stupid me.. (:
Well, Im glad I was of help even tho I didnt understand the actual problem.. (; |
All times are GMT -5. The time now is 04:33 AM. |