Computing.Net > Forums > Unix > crontab email notify seti

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

crontab email notify seti

Reply to Message Icon

Name: Mr. Crow
Date: November 13, 2002 at 09:47:55 Pacific
OS: Solaris 8
CPU/Ram: sparc, 1024
Comment:

Hi!

I am running seti from crontab on solaris 8 but every day I receive email that a process has been terminated. How to make it not to send email or how to disable email completely?


1 20 * * * cd $HOME/.seti; ./seti > /dev/null 2> /dev/null
50 7 * * 1-5 cd $HOME/.seti; ./stop > /dev/null 2> /dev/null

$ cat $HOME/.seti/stop

kill `ps -ef|grep seti|grep -v grep|awk '{print $2}'` > /dev/null 2> /dev/null

Thanks.





Sponsored Link
Ads by Google

Response Number 1
Name: chintamani
Date: November 13, 2002 at 11:27:59 Pacific
Reply:

Hi,

In your seti script make sure you capture output and error messages into log file. Otherwise any standard output/error messages is mailed to the user running the script.

You can disable sending mails from the system by turing off execute permission on sendmail, mailx and mail binaries, but i would prefer the first option of modifying the scripts.

C


0

Response Number 2
Name: Don Arnett
Date: November 13, 2002 at 12:23:02 Pacific
Reply:

Contrary to what chinta said, it appears to me that you are capturing stdout and stderr. Just you're sending them to /dev/null rather than a file.

That was going to be my suggestion, but you are already doing it.

This is off the topic, but if you want to send stdout and stderr to the same place, another way is:

> /dev/null 2>&1

That says to send stderr to the same place as stdout, which was already redirected to /dev/null


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: crontab email notify seti

Shell script for network test www.computing.net/answers/unix/shell-script-for-network-test/7976.html

Check gz zip files when corruption www.computing.net/answers/unix/check-gz-zip-files-when-corruption/7963.html

Crontab Help??? www.computing.net/answers/unix/crontab-help/3408.html