Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-03-2004, 10:07 PM   #1
LQ Newbie
Registered: May 2004
Posts: 17

Rep: Reputation: 0
Cron is spamming me

I used Kcron to run a job every few hours and it e-mails me every time it runs. How can I configure cron to not e-mail me everytime it runs?

Old 12-03-2004, 10:33 PM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
if it's mailing you the output from the job, try redirecting the output to /dev/null (or a file if you want to save it somewhere).
Old 12-04-2004, 01:00 AM   #3
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
this is from a default crontab:
# If you don't want the output of a cron job mailed to you, you have to direct
# any output to /dev/null. We'll do this here since these jobs should run
# properly on a newly installed system, but if they don't the average newbie
# might get quite perplexed about getting strange mail every 5 minutes. :^)
# Run the hourly, daily, weekly, and monthly cron jobs.
# Jobs that need different timing may be entered into the crontab as before,
# but most really don't need greater granularity than this. If the exact
# times of the hourly, daily, weekly, and monthly cron jobs do not suit your
# needs, feel free to adjust them.
# Run hourly cron jobs at 47 minutes after the hour:
47 * * * * /usr/bin/run-parts /etc/cron.hourly 1> /dev/null


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Spamming E.T. ... AlexV General 1 03-02-2005 10:58 AM
Bulk email - scared of being accused of spamming. GuitsBoy General 3 11-14-2003 04:14 PM
sorry for spamming csspcman Linux - Laptop and Netbook 1 08-11-2003 03:34 AM
Email spamming prevention m_sree Linux - Security 4 01-16-2003 09:54 AM
How to Stop Spamming in Sendmail johnlee Linux - Security 1 10-29-2001 11:28 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:23 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration