2

How do I want to create a cron job on Linux that runs every 0.25 hour?

migrated from stackoverflow.com Oct 13 '09 at 12:17

This question came from our site for professional and enthusiast programmers.

15

As well as rslite's

0,15,30,45 * * * *  command-to-be-executed

This should work on most versions of cron

*/15 * * * * command-to-be-executed
5

Add this to the crontab file:

0,15,30,45 * * * *  command-to-be-executed
3
*/15 * * * * some-command
  • 1
    Don't forget to specify full path for some-command. E.g. not perl but /usr/bin/perl. – lexsys Oct 13 '09 at 12:22
3

14,29,44,59 * * * * full-path-of-command-to-execute with argument

Just to avoid the rush at XX:00

:-)

1

Set minutes as 0,15,30,45 or starting from any other minute of hour.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy