No mail in Solaris Cron commands
Hi all,
If in Linux you want to disable the mail facility that cron uses, you must specify following command in the crontab : 1 * * * * /usr/sbin/ntpdate 18.23.145.177 > /dev/null 2>&1 the > /dev/null 2>&1 will make sure that all output from the ntpdate command is send to the null device, and not to STDIOUT so that it will not be mailed to the owner of the crontab file. Can I apply the same command under Solaris Crontab file (Solaris 8) ? |
Yes, you can use any valid commands in a crontab. There's nothing special about redirecting the output.
|
All times are GMT -5. The time now is 05:38 AM. |