How Do I Run a Cron Job Every Hour in Linux?
Contents How Do I Schedule a Cron Job Every 2 Hours? 0 */1 * * * “At Minute 0 Past Every Hour. ” 0 */2 * * * “At Minute 0 Past Every 2Nd Hour. ” This Is the...
Contents
How do I schedule a cron job every 2 hours?
0 */1 * * * “At minute 0 past every hour.” 0 */2 * * * “At minute 0 past every 2nd hour.” This is the proper way to set cronjobs for every hr.
Must Read
How do I run a cron job every 5 minutes in Linux?
Run a program or script every 5 or X minutes or hours
- Edit your cronjob file by running crontab -e command.
- Add the following line for an every-5-minutes interval. */5 * * * * /path/to/script-or-program.
- Save the file, and that is it.
7 апр. 2012 г.