开发者

possible to change a script when it is running?

开发者 https://www.devze.com 2022-12-31 04:28 出处:网络
Suppose a script has 1000 lines, and the 10 line has a command takes a long time to run and when I find it is running line 10, I find I need to change line 100, is it possible to do that without stop

Suppose a script has 1000 lines, and the 10 line has a command takes a long time to run and when I find it is running line 10, I find I need to change line 100, is it possible to do that without stop the script first?

We can also stop a process by using command pstop, but I don't know how to let the process to re-read the script and con开发者_运维问答tinue to run from where it paused.


I don't think that is possible. Scripts are usually fully loaded (read) into the memory before execution.

0

精彩评论

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