Re: cron job

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

 



On Tue, Jul 29, 2008 at 04:29:44PM -0400, Max Pyziur wrote:
> On Tue, 29 Jul 2008 tony.chamberlain@xxxxxxxxx wrote:
>
>>
>> Output from nightly cronjobs is filling root's mailbox quickly,
>> and sending everything else to /var/spool/mqueue.  These are just
>> status messages (stdout) from the cronjobs which we don't really need
>> mailed to root.  Is there anyway to suppress mailings?
>
> Send your jobs to /dev/null like so:
> 30 0 * * * /path/to/program >> /dev/null
>
> Make sense?

The above addresses stdout as requested
also consider stderr..

2       1   *   *  *    $HOME/bin/check-calendar > /dev/null 2>&1 < /dev/null &

In general a unix program should be 'silent' unless there is an error.
If cronjobs are filling the mailbox too quickly then look at the jobs
to see why they are generating so much traffic.

Also since this is root and most users 'never' login as root, ;-) also look at
/etc/aliases.  It is possible to send mail for root to a person. That person can
sort, filter, read  and dispose of the traffic as needed.  Look near the lines:

	# Person who should get root's mail
	#root:          marc

Don't forget to run newaliases.


-- 
	T o m  M i t c h e l l 
	Looking for a place to hang mfors hat.


-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux