Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

avoid mail message in cronjob

Status
Not open for further replies.

apr1004

Programmer
May 1, 2003
10
SG
hi
I've submiitted a job to crontab as follows

00 00 * * * 1.sh

After the execution it sends mail to my login user. how can avoid the mail messages.

Pls help me,

apr1004.

 
AFAIK, you only get mail if there is any output
So redirect everything to the bit-bucket

00 00 * * * 1.sh 1>/dev/null 2>&1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top