1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Cron Jobs Emails - Is it error message?

Discussion in 'Site & Server Administration' started by FreeFun4Every1, Nov 30, 2013.

  1. #1
    I had setup infinite wordpress panel (http://infinitewp.com) to manage multiple wordpress sites from single control panel and for that as per their instruction given here I had created cron job in my Godaddy linux hosting account. But now I am getting email from Cron Daemon at every half hour. I know I had set time 30 mins but it should send me email only when error.
    I am getting mail like this
    Set-Cookie: adminPanel=hgnj7qaq38tfktpb53tr16ga45
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    Content-type: text/html
    Code (markup):
    All mails are same just admin panel cookie value change all time. So is it some kind of error message? :confused: Sorry I had never created cron so don't know about it. It's headache to get same email every half hour. Anyone who had deal with this kind of cron jobs please explain me this message.

    Regards,
    Jaimin
     
    FreeFun4Every1, Nov 30, 2013 IP
  2. Lanie2013

    Lanie2013 Member

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #2
    If you don't have privilege to setup cron job or don't know how to, a third party webcron may be a good option for you. Check out a tutorial at http://www.easycron.com/tutorials/how-to-set-up-cron-job-for-infinitewp
     
    Lanie2013, Dec 6, 2013 IP
  3. obosor

    obosor Well-Known Member

    Messages:
    148
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    140
    #3
    If you set 30 mins interval then you will get cronjob notification every 30 mins. If you don't want to get notification then you need to remove cronjob.
     
    obosor, Dec 10, 2013 IP
  4. evtimii

    evtimii Active Member

    Messages:
    55
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    70
    #4
    Put ">/dev/null" after the command line of the cron, that way you'll only receive e-mail on error.
     
    evtimii, Dec 10, 2013 IP
    FreeFun4Every1 likes this.
  5. infinitnet

    infinitnet Member

    Messages:
    56
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    35
    #5
    That is just the output (result) of the command you run as cronjob, rather than an error message. To surpress this output, simply put " > /dev/null 2>&1" at the end of the command (without asterisk of course), like "php -q /path/to/your/cron.php > /dev/null 2>&1".

    Hope this helps.
     
    infinitnet, Dec 11, 2013 IP
    FreeFun4Every1 likes this.
  6. zacharooni

    zacharooni Well-Known Member

    Messages:
    346
    Likes Received:
    20
    Best Answers:
    4
    Trophy Points:
    120
    #6
    You can additionally ask your host to edit the header of your cron spool to say:

    MAILTO=""

    This will disable email sending regardless of the /dev/null redirection or not.
     
    zacharooni, Dec 11, 2013 IP
  7. FreeFun4Every1

    FreeFun4Every1 Prominent Member

    Messages:
    1,109
    Likes Received:
    232
    Best Answers:
    9
    Trophy Points:
    365
    #7
    Thanks for your all helps I will surely try them..i just want notification on error
     
    FreeFun4Every1, Dec 11, 2013 IP
  8. FreeFun4Every1

    FreeFun4Every1 Prominent Member

    Messages:
    1,109
    Likes Received:
    232
    Best Answers:
    9
    Trophy Points:
    365
    #8
    Thanks it works as I as want :)
     
    FreeFun4Every1, Dec 13, 2013 IP
  9. evtimii

    evtimii Active Member

    Messages:
    55
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    70
    #9
    You're welcome :)
     
    evtimii, Dec 13, 2013 IP