yuli chika
yuli chika

Reputation: 9221

How to set cron to run a file accurately in seconds?

I want set run a file with cron at 12:03:37 every day. How do I set set cron to run a file accurately in seconds?

Upvotes: 1

Views: 212

Answers (1)

Ramon
Ramon

Reputation: 8424

You could set it up to run at 12:03 and then sleep for 37 seconds:

3 12 * * * root sleep 37; /path/to/your/script

Upvotes: 5

Related Questions