Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crontab



If you redirect the output of a cron entry to a file (or /dev/null)
then you shouldn't get email.  For example:

	* 3 * * * /usr/local/bin/myscript > /tmp/myscript.log 2>&1
or
	15,45 8-17 * * * /home/user1/monitor > /dev/null 2>&1

Hope that helps.

-- 
Gordon Keegan, M10-10		Phone: (508) 261-4696
Motorola ING			Fax:   (508) 261-5757
20 Cabot Boulevard
Mansfield, MA 02048		email: lgk011 at dma.isg.mot.com


> Hello,
> 	Anyone know how to make crontab stop sending email everytime it
> completes a task.  Or send crontabs mail to /dev/null?  
> 
> Thanks,
> Anthony
> 
> -
> Subcription/unsubscription/info requests: send e-mail with
> "subscribe", "unsubscribe", or "info" on the first line of the
> message body to discuss-request at blu.org (Subject line is ignored).
> 


-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org