Crontab changes not working

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











up vote
-2
down vote

favorite












I recently made some changes to my crontab, added some new entries and activated one disabled (commented) entry. However, the new changes that I made were not triggered and the crontab functioned as it was in the previous state, although the crontab shows the changes made to it.



One more thing, i also edited the crontab file of root user in my "/var/spool/cron" folder. I think it has something to do with it.










share|improve this question

























    up vote
    -2
    down vote

    favorite












    I recently made some changes to my crontab, added some new entries and activated one disabled (commented) entry. However, the new changes that I made were not triggered and the crontab functioned as it was in the previous state, although the crontab shows the changes made to it.



    One more thing, i also edited the crontab file of root user in my "/var/spool/cron" folder. I think it has something to do with it.










    share|improve this question























      up vote
      -2
      down vote

      favorite









      up vote
      -2
      down vote

      favorite











      I recently made some changes to my crontab, added some new entries and activated one disabled (commented) entry. However, the new changes that I made were not triggered and the crontab functioned as it was in the previous state, although the crontab shows the changes made to it.



      One more thing, i also edited the crontab file of root user in my "/var/spool/cron" folder. I think it has something to do with it.










      share|improve this question













      I recently made some changes to my crontab, added some new entries and activated one disabled (commented) entry. However, the new changes that I made were not triggered and the crontab functioned as it was in the previous state, although the crontab shows the changes made to it.



      One more thing, i also edited the crontab file of root user in my "/var/spool/cron" folder. I think it has something to do with it.







      linux cron suse






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 10 at 8:14









      Faisal Abbas

      31




      31




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          To edit a crontab file, always use crontab -e. If you want to edit the crontab of the root user, use sudo crontab -e.



          Changing the files under the crontab spool directory is definitely not advised. Editing via crontab -e additionally informs the cron daemon that the crontab needs to be re-read. This may not otherwise happen.



          Related:



          • Can I manually create and edit `/var/spool/cron/crontabs/t` without `crontab -e`?





          share|improve this answer




















          • So now what do I have do? I should also mention that I edited the crontab with "crontab -e" afterwards. Will this be enough for the changes to take effect?
            – Faisal Abbas
            Dec 10 at 8:45










          • @FaisalAbbas Editing the crontab with crontab -e will ensure that the changes take effect. If you have any errors in the crontab, then this may cause the jobs to fail (and an error message to be emailed to the owner of the crontab), but you never showed what your crontab looked like so I couldn't really comment on that.
            – Kusalananda
            Dec 10 at 8:48










          • I edited the crontab with "crontab -e" and the job worked well. Thanks!
            – Faisal Abbas
            Dec 10 at 8:50










          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f487064%2fcrontab-changes-not-working%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote



          accepted










          To edit a crontab file, always use crontab -e. If you want to edit the crontab of the root user, use sudo crontab -e.



          Changing the files under the crontab spool directory is definitely not advised. Editing via crontab -e additionally informs the cron daemon that the crontab needs to be re-read. This may not otherwise happen.



          Related:



          • Can I manually create and edit `/var/spool/cron/crontabs/t` without `crontab -e`?





          share|improve this answer




















          • So now what do I have do? I should also mention that I edited the crontab with "crontab -e" afterwards. Will this be enough for the changes to take effect?
            – Faisal Abbas
            Dec 10 at 8:45










          • @FaisalAbbas Editing the crontab with crontab -e will ensure that the changes take effect. If you have any errors in the crontab, then this may cause the jobs to fail (and an error message to be emailed to the owner of the crontab), but you never showed what your crontab looked like so I couldn't really comment on that.
            – Kusalananda
            Dec 10 at 8:48










          • I edited the crontab with "crontab -e" and the job worked well. Thanks!
            – Faisal Abbas
            Dec 10 at 8:50














          up vote
          1
          down vote



          accepted










          To edit a crontab file, always use crontab -e. If you want to edit the crontab of the root user, use sudo crontab -e.



          Changing the files under the crontab spool directory is definitely not advised. Editing via crontab -e additionally informs the cron daemon that the crontab needs to be re-read. This may not otherwise happen.



          Related:



          • Can I manually create and edit `/var/spool/cron/crontabs/t` without `crontab -e`?





          share|improve this answer




















          • So now what do I have do? I should also mention that I edited the crontab with "crontab -e" afterwards. Will this be enough for the changes to take effect?
            – Faisal Abbas
            Dec 10 at 8:45










          • @FaisalAbbas Editing the crontab with crontab -e will ensure that the changes take effect. If you have any errors in the crontab, then this may cause the jobs to fail (and an error message to be emailed to the owner of the crontab), but you never showed what your crontab looked like so I couldn't really comment on that.
            – Kusalananda
            Dec 10 at 8:48










          • I edited the crontab with "crontab -e" and the job worked well. Thanks!
            – Faisal Abbas
            Dec 10 at 8:50












          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          To edit a crontab file, always use crontab -e. If you want to edit the crontab of the root user, use sudo crontab -e.



          Changing the files under the crontab spool directory is definitely not advised. Editing via crontab -e additionally informs the cron daemon that the crontab needs to be re-read. This may not otherwise happen.



          Related:



          • Can I manually create and edit `/var/spool/cron/crontabs/t` without `crontab -e`?





          share|improve this answer












          To edit a crontab file, always use crontab -e. If you want to edit the crontab of the root user, use sudo crontab -e.



          Changing the files under the crontab spool directory is definitely not advised. Editing via crontab -e additionally informs the cron daemon that the crontab needs to be re-read. This may not otherwise happen.



          Related:



          • Can I manually create and edit `/var/spool/cron/crontabs/t` without `crontab -e`?






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 10 at 8:19









          Kusalananda

          121k16226370




          121k16226370











          • So now what do I have do? I should also mention that I edited the crontab with "crontab -e" afterwards. Will this be enough for the changes to take effect?
            – Faisal Abbas
            Dec 10 at 8:45










          • @FaisalAbbas Editing the crontab with crontab -e will ensure that the changes take effect. If you have any errors in the crontab, then this may cause the jobs to fail (and an error message to be emailed to the owner of the crontab), but you never showed what your crontab looked like so I couldn't really comment on that.
            – Kusalananda
            Dec 10 at 8:48










          • I edited the crontab with "crontab -e" and the job worked well. Thanks!
            – Faisal Abbas
            Dec 10 at 8:50
















          • So now what do I have do? I should also mention that I edited the crontab with "crontab -e" afterwards. Will this be enough for the changes to take effect?
            – Faisal Abbas
            Dec 10 at 8:45










          • @FaisalAbbas Editing the crontab with crontab -e will ensure that the changes take effect. If you have any errors in the crontab, then this may cause the jobs to fail (and an error message to be emailed to the owner of the crontab), but you never showed what your crontab looked like so I couldn't really comment on that.
            – Kusalananda
            Dec 10 at 8:48










          • I edited the crontab with "crontab -e" and the job worked well. Thanks!
            – Faisal Abbas
            Dec 10 at 8:50















          So now what do I have do? I should also mention that I edited the crontab with "crontab -e" afterwards. Will this be enough for the changes to take effect?
          – Faisal Abbas
          Dec 10 at 8:45




          So now what do I have do? I should also mention that I edited the crontab with "crontab -e" afterwards. Will this be enough for the changes to take effect?
          – Faisal Abbas
          Dec 10 at 8:45












          @FaisalAbbas Editing the crontab with crontab -e will ensure that the changes take effect. If you have any errors in the crontab, then this may cause the jobs to fail (and an error message to be emailed to the owner of the crontab), but you never showed what your crontab looked like so I couldn't really comment on that.
          – Kusalananda
          Dec 10 at 8:48




          @FaisalAbbas Editing the crontab with crontab -e will ensure that the changes take effect. If you have any errors in the crontab, then this may cause the jobs to fail (and an error message to be emailed to the owner of the crontab), but you never showed what your crontab looked like so I couldn't really comment on that.
          – Kusalananda
          Dec 10 at 8:48












          I edited the crontab with "crontab -e" and the job worked well. Thanks!
          – Faisal Abbas
          Dec 10 at 8:50




          I edited the crontab with "crontab -e" and the job worked well. Thanks!
          – Faisal Abbas
          Dec 10 at 8:50

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f487064%2fcrontab-changes-not-working%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown






          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?