LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 01-05-2004, 11:07 AM   #1
markraem
Member
 
Registered: Nov 2003
Posts: 82

Rep: Reputation: 15
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) ?
 
Old 01-05-2004, 03:11 PM   #2
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Yes, you can use any valid commands in a crontab. There's nothing special about redirecting the output.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron mail sending using outside SMTP mail server Utah Linux - Software 6 08-24-2005 07:44 PM
cp in cron - solaris twantrd Solaris / OpenSolaris 4 07-30-2005 01:11 PM
No More Cron Mail, Cron Error? Xhost Linux - General 3 07-26-2004 04:28 PM
Help with Cron commands ozstar Linux - Newbie 2 05-03-2004 04:07 PM
How to use cron command in solaris meng_en General 1 11-06-2002 09:08 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 05:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration