LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   No mail in Solaris Cron commands (https://www.linuxquestions.org/questions/solaris-opensolaris-20/no-mail-in-solaris-cron-commands-131723/)

markraem 01-05-2004 11:07 AM

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) ?

stickman 01-05-2004 03:11 PM

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.