Stop conjob from sending emails

Help
Rob
2007-09-03
2013-04-02
  • Rob

    Rob - 2007-09-03

    Hi,

    my serverprovider chanched some things and upraded there systems. From then on i recieve an email from my cronjob telling me each time it is running:

    ------------------------------------------------------------
    CoMoblog 1.1 batch - 2007-XX-XX XX:XX:XX
    ------------------------------------------------------------

    ** No mail found **

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    Can i only get an email when ther is some new posts....?

    Do i have to change things in the admin section in the "comoblog_batch.php"
    maybe here?:
    - - - - -
          $howmany_msg = $pop3->numMsg();
         
          if ($howmany_msg == 0) {
             if ($BATCH_LOG) echo "\n ** No mail found **\n";
            
             // pop3 disconnect
              $pop3->disconnect();
          }
          else { 

    - - - - - -

    thanks

    Rob

     
    • Mark Wallis (aka serialmonkey)

      If you append the following to the end of your crontab line then it will stop it emailing you

      > /dev/null

      Unfortunatly, to only get it to email you when there is an error would require a patch.

       
    • Rob

      Rob - 2007-09-07

      Sorry,
      but i don't understand were to but /dev/null exactly.
      do you mean i have to change anything in the cronjob menue in my confixx administration?
      thanx

      rob

       
      • Mark Wallis (aka serialmonkey)

        Normally if you just add the >/dev/null command to the end of the crontab entry in your admin pages that will block anything being sent to you in the email. I know this works in Cpanel.

        m.

         

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks