Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
cron keeps emailing me.
Results 1 to 2 of 2

Thread: cron keeps emailing me.

  1. #1
    Senior Member
    Join Date
    Apr 2002
    Posts
    417

    cron keeps emailing me.

    Hi,

    I set up a cron job that runs every hour or so. When it runs it sends me an email. How can I stop it from sending me an email every time it runs?

    thanx,

  2. #2

    Re:cron keeps emailing me.

    What is your cron job? When I run a script from cron, I send all its output to /dev/null or to its own log file. Don't know if this is the right way to do things, but it does keep those emails from flooding my box.

    For instance, let's say I cron up2date on my servers. I'll write the cron script like this:
    Code:
    #!/bin/bash
    
    /usr/sbin/up2date -u > /dev/null
    If you want to keep track of the activity your script is generating, then you can just do something like this:
    Code:
    #!/bin/bash
    
    /usr/sbin/up2date -u >> /var/log/my_cron_log
    Don't know if this is the right way to do things, but it has so far worked for me.

Similar Threads

  1. Cron Jobs!
    By honey bee in forum Linux - General Topics
    Replies: 5
    Last Post: 05-08-2010, 02:04 AM
  2. how to write cron job
    By anu2 in forum General Chat
    Replies: 1
    Last Post: 03-02-2007, 12:28 PM
  3. cron job
    By pinehead in forum Linux - General Topics
    Replies: 1
    Last Post: 08-12-2004, 11:19 PM
  4. stop cron.hourly emailing
    By Blaqb0x in forum Linux - Software, Applications & Programming
    Replies: 5
    Last Post: 09-06-2002, 07:09 PM
  5. Help with Cron
    By Baldy in forum Linux - Software, Applications & Programming
    Replies: 4
    Last Post: 05-23-2002, 01:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •