00 06 * * 0 /usr/local/scripts/security > /dev/null 2>&1
The '> /dev/null' sends the output to the bit bucket.
McKown, John wrote:
-----Original Message-----
From: Linux on 390 Port [mailto:[email protected]] On
Behalf Of Mark Pace
Sent: Thursday, August 05, 2010 11:34 AM
To: [email protected]
Subject: CRON
Is there an easy way to make cron not send me an email every
time it runs
one of my jobs? I have one job that runs every 15 mins, and
as you may
imagine that generates a lot of mail. Or is there a way
clean up an mbox
without manually doing it?
--
Mark D Pace
It's been a while, but I think it only sends email if there is any stdout or
stderr. So redirect them to /dev/null
echo 'command line >/dev/null 2>&1' | at now+5 minutes
is how I do it for at. I think you can do the same for cron.
--
John McKown
Systems Engineer IV
IT
Administrative Services Group
HealthMarkets(r)
9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone * (817)-961-6183 cell
[email protected] * www.HealthMarkets.com
Confidentiality Notice: This e-mail message may contain confidential or
proprietary information. If you are not the intended recipient, please contact
the sender by reply e-mail and destroy all copies of the original message.
HealthMarkets(r) is the brand name for products underwritten and issued by the
insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance
Company(r), Mid-West National Life Insurance Company of TennesseeSM and The
MEGA Life and Health Insurance Company.SM
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/