我见过监控程序在脚本中定期使用'ps‘或'service status (在Linux上)’检查进程状态,或者在C/C++中使用分叉并等待进程.我想知道是否可以在SIGCLD接收到时使用bash和陷阱并重新启动子进程?#!another/bash/script.sh & # the one to restar
我可以使用Popen from python子进程来关闭已启动的进程吗?例如,我从popen运行一些应用程序。在我代码的某些部分,我必须关闭已运行的应用程序。例如,在Linux的控制台中,我这样做:... It works and logs stdout here ...Ctrl + C and it breaks
我需要像Ctrl +C这样的东西