开发者

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 -v开发者_如何学JAVAalue 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


Yes. Yes it will.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜