Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

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

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

5 Answers 5

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
share|improve this answer

Add this to the crontab file:

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

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

Just to avoid the rush at XX:00

:-)

share|improve this answer
    
Oh, I like this. –  Paul Tomblin Oct 13 '09 at 13:16

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.