user348173
user348173

Reputation: 9288

Run cron job hourly

I use let's encrypt for getting certificates and I want to setup renewal for certificates.

So, I decided to check if cron works fine.

I created three file in daily.hourly folder:

  1. test-h:

    /sbin/ifconfig >/home/bitnami/ipt

  2. test-h2:

    #!/bin/bash
    /sbin/ifconfig > /home/bitnami/ipt2

  3. test-h3.sh:

    #!/bin/bash
    /sbin/ifconfig >/home/bitnami/ipt3

But, I don't see my files in home directory. How to properly use cron.daily?

PS. The cron servive is started, I checked.
I restarted it also just to make sure that changes is applied.
The crontab file contains record for cron.hourly:

17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly

I am not linux guy, so, if it possible get me detailed answer please.

Upvotes: 0

Views: 205

Answers (1)

John Zwinck
John Zwinck

Reputation: 249582

The problem is you didn't chmod +x your scripts. That's needed to make them executable.

Upvotes: 2

Related Questions