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.
Crontab scheduling
Re: Crontab scheduling
I think */60 means every 60 minutes:
https://crontab.guru/every-5-minutes
https://crontab.guru/every-5-minutes
Re: Crontab scheduling
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
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
-
- Posts: 50
- Joined: 2019/06/25 13:10:33
Re: Crontab scheduling
@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.