ä¹ ãã¶ãã®ããã°ã«ãªãã¾ãã cron ã§ã¨ãããããå¦çã setlock ã使ã£ã¦ãæ¯æé çªã«ç´åå®è¡ãã¦ãã¾ãã ãã®ãããå¦çã¯ãéå» 1 æéåã®ã¢ã¯ã»ã¹ãã°ããã«ããã«ãéè¨ãã¦ãã¾ããä»®ã«ããã®ãããå¦çã¯ã1.rbã2.rbã3.rbãã® 3 ã¤ã®ããã°ã©ã ãããã¨ãã¾ãããã2.rb ã¯ãå¿ ã 1.rb ãå®è¡ãçµãã£ããã¨ã«å®è¡ãããã¨ãåæã3.rb ã¯ãå¿ ã 2.rb ãå®è¡ãçµãã£ããã¨ã«å®è¡ãããã¨ãåæã¨ãªã£ã¦ãã¾ãã cron ã«ã¯ã次ã®ããã« 5 åå»ã¿ã§è¨å®ããã¦ãã¾ãã 5 */1 * * * /usr/bin/setlock /tmp/hoge.lock /tmp/1.rb 10 */1 * * * /usr/bin/setlock /tmp/hoge.lock /tmp/2.rb 15 */1 * * * /usr/bin/setlock /tmp
{{#tags}}- {{label}}
{{/tags}}