Cronjob deleted but cron still sends email

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












I have in /etc/crontab a job defined like this:



0,10,20,30,40,50 * * * * root /usr/lib/cgi-bin/awstats.pl -config=example.com -update



I deleted this job but cron sends me still emails every ten minutes.



How can I stop these emails?



Thanks a lot










share|improve this question









New contributor




wolf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.























    up vote
    2
    down vote

    favorite












    I have in /etc/crontab a job defined like this:



    0,10,20,30,40,50 * * * * root /usr/lib/cgi-bin/awstats.pl -config=example.com -update



    I deleted this job but cron sends me still emails every ten minutes.



    How can I stop these emails?



    Thanks a lot










    share|improve this question









    New contributor




    wolf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      I have in /etc/crontab a job defined like this:



      0,10,20,30,40,50 * * * * root /usr/lib/cgi-bin/awstats.pl -config=example.com -update



      I deleted this job but cron sends me still emails every ten minutes.



      How can I stop these emails?



      Thanks a lot










      share|improve this question









      New contributor




      wolf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I have in /etc/crontab a job defined like this:



      0,10,20,30,40,50 * * * * root /usr/lib/cgi-bin/awstats.pl -config=example.com -update



      I deleted this job but cron sends me still emails every ten minutes.



      How can I stop these emails?



      Thanks a lot







      cron






      share|improve this question









      New contributor




      wolf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      wolf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 4 mins ago





















      New contributor




      wolf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 43 mins ago









      wolf

      113




      113




      New contributor




      wolf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      wolf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      wolf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote













          It may be worth restarting the cron service for the changes to take effect. Since you have not specified which distribution you are using, there are a few different commands you can try in the terminal.



          Load up your terminal and try one of these commands:



          sudo service cron restart



          sudo systemctl restart cron



          sudo systemctl restart crond.service






          share|improve this answer






















          • Isn't working my distribution is Raspbian 9 stretch
            – wolf
            26 mins ago










          • @wolf did the command(s) run?
            – Jeff
            25 mins ago






          • 1




            If the above commands did not work, can you try /etc/init.d/crond restart or /etc/init.d/cron restart?
            – ipkpjersi
            24 mins ago







          • 1




            man cron says that restarting the service is not needed :` Additionally, cron checks each minute to see if its spool directory's modtime (or the modtime on the /etc/crontab file) has changed, and if it has, cron will then examine the modtime on all crontabs files and reload those which have changed. Thus cron need not be restarted when‐ ever a crontab file is modified.
            – mook765
            21 mins ago











          • The command sudo service cron restart did work but it remains the same. Still an email every ten minutes.
            – wolf
            8 mins ago










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          wolf is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1076689%2fcronjob-deleted-but-cron-still-sends-email%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          3
          down vote













          It may be worth restarting the cron service for the changes to take effect. Since you have not specified which distribution you are using, there are a few different commands you can try in the terminal.



          Load up your terminal and try one of these commands:



          sudo service cron restart



          sudo systemctl restart cron



          sudo systemctl restart crond.service






          share|improve this answer






















          • Isn't working my distribution is Raspbian 9 stretch
            – wolf
            26 mins ago










          • @wolf did the command(s) run?
            – Jeff
            25 mins ago






          • 1




            If the above commands did not work, can you try /etc/init.d/crond restart or /etc/init.d/cron restart?
            – ipkpjersi
            24 mins ago







          • 1




            man cron says that restarting the service is not needed :` Additionally, cron checks each minute to see if its spool directory's modtime (or the modtime on the /etc/crontab file) has changed, and if it has, cron will then examine the modtime on all crontabs files and reload those which have changed. Thus cron need not be restarted when‐ ever a crontab file is modified.
            – mook765
            21 mins ago











          • The command sudo service cron restart did work but it remains the same. Still an email every ten minutes.
            – wolf
            8 mins ago














          up vote
          3
          down vote













          It may be worth restarting the cron service for the changes to take effect. Since you have not specified which distribution you are using, there are a few different commands you can try in the terminal.



          Load up your terminal and try one of these commands:



          sudo service cron restart



          sudo systemctl restart cron



          sudo systemctl restart crond.service






          share|improve this answer






















          • Isn't working my distribution is Raspbian 9 stretch
            – wolf
            26 mins ago










          • @wolf did the command(s) run?
            – Jeff
            25 mins ago






          • 1




            If the above commands did not work, can you try /etc/init.d/crond restart or /etc/init.d/cron restart?
            – ipkpjersi
            24 mins ago







          • 1




            man cron says that restarting the service is not needed :` Additionally, cron checks each minute to see if its spool directory's modtime (or the modtime on the /etc/crontab file) has changed, and if it has, cron will then examine the modtime on all crontabs files and reload those which have changed. Thus cron need not be restarted when‐ ever a crontab file is modified.
            – mook765
            21 mins ago











          • The command sudo service cron restart did work but it remains the same. Still an email every ten minutes.
            – wolf
            8 mins ago












          up vote
          3
          down vote










          up vote
          3
          down vote









          It may be worth restarting the cron service for the changes to take effect. Since you have not specified which distribution you are using, there are a few different commands you can try in the terminal.



          Load up your terminal and try one of these commands:



          sudo service cron restart



          sudo systemctl restart cron



          sudo systemctl restart crond.service






          share|improve this answer














          It may be worth restarting the cron service for the changes to take effect. Since you have not specified which distribution you are using, there are a few different commands you can try in the terminal.



          Load up your terminal and try one of these commands:



          sudo service cron restart



          sudo systemctl restart cron



          sudo systemctl restart crond.service







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 24 mins ago

























          answered 38 mins ago









          ipkpjersi

          1315




          1315











          • Isn't working my distribution is Raspbian 9 stretch
            – wolf
            26 mins ago










          • @wolf did the command(s) run?
            – Jeff
            25 mins ago






          • 1




            If the above commands did not work, can you try /etc/init.d/crond restart or /etc/init.d/cron restart?
            – ipkpjersi
            24 mins ago







          • 1




            man cron says that restarting the service is not needed :` Additionally, cron checks each minute to see if its spool directory's modtime (or the modtime on the /etc/crontab file) has changed, and if it has, cron will then examine the modtime on all crontabs files and reload those which have changed. Thus cron need not be restarted when‐ ever a crontab file is modified.
            – mook765
            21 mins ago











          • The command sudo service cron restart did work but it remains the same. Still an email every ten minutes.
            – wolf
            8 mins ago
















          • Isn't working my distribution is Raspbian 9 stretch
            – wolf
            26 mins ago










          • @wolf did the command(s) run?
            – Jeff
            25 mins ago






          • 1




            If the above commands did not work, can you try /etc/init.d/crond restart or /etc/init.d/cron restart?
            – ipkpjersi
            24 mins ago







          • 1




            man cron says that restarting the service is not needed :` Additionally, cron checks each minute to see if its spool directory's modtime (or the modtime on the /etc/crontab file) has changed, and if it has, cron will then examine the modtime on all crontabs files and reload those which have changed. Thus cron need not be restarted when‐ ever a crontab file is modified.
            – mook765
            21 mins ago











          • The command sudo service cron restart did work but it remains the same. Still an email every ten minutes.
            – wolf
            8 mins ago















          Isn't working my distribution is Raspbian 9 stretch
          – wolf
          26 mins ago




          Isn't working my distribution is Raspbian 9 stretch
          – wolf
          26 mins ago












          @wolf did the command(s) run?
          – Jeff
          25 mins ago




          @wolf did the command(s) run?
          – Jeff
          25 mins ago




          1




          1




          If the above commands did not work, can you try /etc/init.d/crond restart or /etc/init.d/cron restart?
          – ipkpjersi
          24 mins ago





          If the above commands did not work, can you try /etc/init.d/crond restart or /etc/init.d/cron restart?
          – ipkpjersi
          24 mins ago





          1




          1




          man cron says that restarting the service is not needed :` Additionally, cron checks each minute to see if its spool directory's modtime (or the modtime on the /etc/crontab file) has changed, and if it has, cron will then examine the modtime on all crontabs files and reload those which have changed. Thus cron need not be restarted when‐ ever a crontab file is modified.
          – mook765
          21 mins ago





          man cron says that restarting the service is not needed :` Additionally, cron checks each minute to see if its spool directory's modtime (or the modtime on the /etc/crontab file) has changed, and if it has, cron will then examine the modtime on all crontabs files and reload those which have changed. Thus cron need not be restarted when‐ ever a crontab file is modified.
          – mook765
          21 mins ago













          The command sudo service cron restart did work but it remains the same. Still an email every ten minutes.
          – wolf
          8 mins ago




          The command sudo service cron restart did work but it remains the same. Still an email every ten minutes.
          – wolf
          8 mins ago










          wolf is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          wolf is a new contributor. Be nice, and check out our Code of Conduct.












          wolf is a new contributor. Be nice, and check out our Code of Conduct.











          wolf is a new contributor. Be nice, and check out our Code of Conduct.













           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1076689%2fcronjob-deleted-but-cron-still-sends-email%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          What does second last employer means? [closed]

          Installing NextGIS Connect into QGIS 3?

          One-line joke