开发者

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

开发者 https://www.devze.com 2023-01-18 02:56 出处:网络
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

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

精彩评论

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