Jadu Saikia
Jadu Saikia

Reputation: 21

How can I execute a cron job five seconds after the full minute?

Basically I am trying to execute the script '/path/to/my/script/script.sh -value 2' as 'testuser' at every minute's 5th second. (5 seconds is the delay required for "some reason" which could have been part of the script itself, but I just want to put it on Cron).

Is this the right way to do this?

* * * * * testuser sleep 5 && /path/to/my/script/script.sh -value 2

Upvotes: 0

Views: 401

Answers (1)

mob
mob

Reputation: 118605

Yes. Yes it will.

Upvotes: 2

Related Questions