Crontab scheduling

Issues related to applications and software problems and general support
Post Reply
afernandezody
Posts: 50
Joined: 2019/06/25 13:10:33

Crontab scheduling

Post by afernandezody » 2021/05/05 16:54:32

Hello,
One app has crontab line that reads */60 * * * * /home/centos/code.sh. This is supposed to run the code every minute but it does not. If I change it to * * * * * /home/centos/code.sh it works. My question is about how to use the operand / in crontab. Thanks.

tunk
Posts: 1204
Joined: 2017/02/22 15:08:17

Re: Crontab scheduling

Post by tunk » 2021/05/05 17:12:49

I think */60 means every 60 minutes:
https://crontab.guru/every-5-minutes

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Crontab scheduling

Post by TrevorH » 2021/05/05 17:20:48

man 5 crontab contains the full list of all the fun things you can do with crontab.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

afernandezody
Posts: 50
Joined: 2019/06/25 13:10:33

Re: Crontab scheduling

Post by afernandezody » 2021/05/05 17:42:36

@tunk. Correct /1 is for every minute and /60 is for every hour. I'm unsure why it wasn't initially working but it seems to be OK now. Will have to keep an eye on it. Thanks.

Post Reply