开发者

How can I auto-restart a ruby script on windows?

I need to restart a script when it fails. My script fails because of a Ruby run开发者_高级运维etime bug which is another issue...


There might be cleaner ways of doing it, but it seems the obvious way is to have a separate process running that monitors the first one. If it is not running, restart it.

You can enumerate processes and get information about the command line and other details in order to know which script is being run.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜