Redirect stdout and stderr
I always hit Google to find out the exact way to redirect crontab entries. Here it is:
*/5 * * * * root /home/mlambie/bin/script.sh > /dev/null 2>&1
Not anything new, but certainly useful (for me :)
I always hit Google to find out the exact way to redirect crontab entries. Here it is:
*/5 * * * * root /home/mlambie/bin/script.sh > /dev/null 2>&1
Not anything new, but certainly useful (for me :)
You can do this to redirect as well:
[command] &> [filename]
Saves some keystrokes :)
Unic & C 152 revisted :)
You know I’m only an email away for leet unix scripting hacks ;)
Yeah exactly Jonny. Those notes were actually pretty good I think, though Google’s made them obsolete.