我需要perl的帮助。我对它很陌生。 我想从我父母的Perl脚本执行一个Perl脚本,包括以下情形:想要在perl脚本中执行perl脚本
if (my child script takes more time than my time limit)
{
I need to kill the child script with a return code
logged into my parent script log file
}
if (my child script failed to execute)
{
I need to write a new RC to my parent script logfile
by looking at my child script exit status
}
任何机构可以为此提供类似的代码如何使用fork,exec和工艺相关的命令 获取的进程id孩子什么时候我的父母脚本被执行?
只有父母可以杀死一个孩子。 :D –