Crontab running helpScript not running in crontab, file not foundIntermittent crontab problemCannot run bash...

Is possible to search in vim history?

Drawing a topological "handle" with Tikz

How can Trident be so inexpensive? Will it orbit Triton or just do a (slow) flyby?

Should I install hardwood flooring or cabinets first?

Longest common substring in linear time

How will losing mobility of one hand affect my career as a programmer?

A Permanent Norse Presence in America

Is a model fitted to data or is data fitted to a model?

Varistor? Purpose and principle

Global amount of publications over time

What is this type of notehead called?

Folder comparison

Can someone explain how this makes sense electrically?

Some numbers are more equivalent than others

Visiting the UK as unmarried couple

We have a love-hate relationship

Do Legal Documents Require Signing In Standard Pen Colors?

Did US corporations pay demonstrators in the German demonstrations against article 13?

Why did the HMS Bounty go back to a time when whales are already rare?

Is XSS in canonical link possible?

Are lightweight LN wallets vulnerable to transaction withholding?

What is the difference between "Do you interest" and "...interested in" something?

Will the technology I first learn determine the direction of my future career?

Freedom of speech and where it applies



Crontab running help


Script not running in crontab, file not foundIntermittent crontab problemCannot run bash script from crontab when it works from command line bashCron job for running gedit not workingCrontab works incorrectlyPermission Denied in Cron Jobcrontab scheduled script errorcrontab job not workingCron job bad day-of-monthIs it possible that shell file permission got changed without user actually changing it?













0















I'm trying to run a bash script every day to check if a certificate is expired or not. I have never been able to get it to work properly, and I think it might be a problem with the cron I have set up.



If I go to run the job manually using "sh renew_lets_encrypt_cert.sh", it works just fine and the cert updates.



# m h  dom mon dow   command
0 0 * * * sh /home/username/renew_lets_encrypt_cert.sh > /home/username/renew_errors.log 2>&1
#


One thing I noticed just now is that I forgot to put the "#" at the bottom of the file, was that necessary? The file path is correct, as well as the file path for the error log (which contains nothing).



Other than that, I don't know what could be causing the problem...Any help would be appreciated.









share







New contributor




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

























    0















    I'm trying to run a bash script every day to check if a certificate is expired or not. I have never been able to get it to work properly, and I think it might be a problem with the cron I have set up.



    If I go to run the job manually using "sh renew_lets_encrypt_cert.sh", it works just fine and the cert updates.



    # m h  dom mon dow   command
    0 0 * * * sh /home/username/renew_lets_encrypt_cert.sh > /home/username/renew_errors.log 2>&1
    #


    One thing I noticed just now is that I forgot to put the "#" at the bottom of the file, was that necessary? The file path is correct, as well as the file path for the error log (which contains nothing).



    Other than that, I don't know what could be causing the problem...Any help would be appreciated.









    share







    New contributor




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























      0












      0








      0








      I'm trying to run a bash script every day to check if a certificate is expired or not. I have never been able to get it to work properly, and I think it might be a problem with the cron I have set up.



      If I go to run the job manually using "sh renew_lets_encrypt_cert.sh", it works just fine and the cert updates.



      # m h  dom mon dow   command
      0 0 * * * sh /home/username/renew_lets_encrypt_cert.sh > /home/username/renew_errors.log 2>&1
      #


      One thing I noticed just now is that I forgot to put the "#" at the bottom of the file, was that necessary? The file path is correct, as well as the file path for the error log (which contains nothing).



      Other than that, I don't know what could be causing the problem...Any help would be appreciated.









      share







      New contributor




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












      I'm trying to run a bash script every day to check if a certificate is expired or not. I have never been able to get it to work properly, and I think it might be a problem with the cron I have set up.



      If I go to run the job manually using "sh renew_lets_encrypt_cert.sh", it works just fine and the cert updates.



      # m h  dom mon dow   command
      0 0 * * * sh /home/username/renew_lets_encrypt_cert.sh > /home/username/renew_errors.log 2>&1
      #


      One thing I noticed just now is that I forgot to put the "#" at the bottom of the file, was that necessary? The file path is correct, as well as the file path for the error log (which contains nothing).



      Other than that, I don't know what could be causing the problem...Any help would be appreciated.







      cron





      share







      New contributor




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










      share







      New contributor




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








      share



      share






      New contributor




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









      asked 8 mins ago









      SugarkryptoniteSugarkryptonite

      1




      1




      New contributor




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





      New contributor





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






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






















          0






          active

          oldest

          votes











          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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
          });


          }
          });






          Sugarkryptonite 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%2f1128403%2fcrontab-running-help%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








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










          draft saved

          draft discarded


















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













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












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
















          Thanks for contributing an answer to Ask Ubuntu!


          • 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%2faskubuntu.com%2fquestions%2f1128403%2fcrontab-running-help%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

          List of shipwrecks in 1808...

          Is there a lightweight tool to crop images quickly?Cropping Images using Command Line Tools OnlyHow to crop...

          Unit packagekit.service is masked Announcing the arrival of Valued Associate #679: Cesar...