You forgot a *
, and you’ve too many fields. It’s the hour you need to care about
0 */6 * * * /path/to/mycommand
This means every sixth hour starting from 0, i.e. at hour 0, 6, 12 and 18 which you could write as
0 0,6,12,18 * * * /path/to/mycommand
More Related Contents:
- CronJob not running
- How to get CRON to call in the correct PATHs
- How do I write a bash script to restart a process if it dies?
- How to instruct cron to execute a job every second week?
- How can I programmatically create a new cron job?
- crontab PATH and USER
- Run a shell command when a file is added
- Managing log files created by cron jobs
- How do I create a crontab through a script
- Run cron job only if it isn’t already running
- How do I set up cron to run a file just once at a specific time? [closed]
- Restarting cron after changing crontab file? [closed]
- Why crontab uses OR when both day of month and day of week specified?
- How to run crontab job every week on Sunday
- Why to code a script which will check if some package is installed in linux and if not then install it?
- How to pass command output as multiple arguments to another command
- How do I setup Public-Key Authentication? [closed]
- Setting the umask of the Apache user
- Sorting a tab delimited file
- How to specify the library version to use at link time?
- How do I find out what all symbols are exported from a shared object?
- SONAR – Measure Code Coverage using Cobertura
- Finding out what characters a given font supports
- Removing Control Characters from a File
- Bash script execution with and without shebang in Linux and BSD
- Variable in Bash Script that keeps it value from the last time running
- How do I get cURL to not show the progress bar?
- Linux: remove file extensions for multiple files
- how to install svn post-commit hook
- How do I use GDB in Eclipse for C/C++ Debugging?