Null: Difference between revisions
From Hackepedia
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
The null device is located in /dev/null usually and discards any data written to it. It's sort of a black hole that eats everything that comes close to it. | The null device is located in /dev/null usually and discards any data written to it. It's sort of a black hole that eats everything that comes close to it. Unwanted output in shells can be redirected to /dev/null: | ||
In case of a crontab entry output can be discarded causing no mails to be sent: | |||
*/5 * * * * /usr/local/bin/fetchmail > /dev/null 2>&1 |
Revision as of 03:21, 6 October 2005
The null device is located in /dev/null usually and discards any data written to it. It's sort of a black hole that eats everything that comes close to it. Unwanted output in shells can be redirected to /dev/null:
In case of a crontab entry output can be discarded causing no mails to be sent: */5 * * * * /usr/local/bin/fetchmail > /dev/null 2>&1