问题描述
我创建了两个sbx部分.这两个部分都使用一个perl文件.当我同时运行两个部分时,第一部分成功执行,但第二部分却出现错误,提示无法生成cmd.exe.
它仅发生在其余终端的一个终端上,它工作正常.
我已经检查了cmd.exe的环境变量设置,但它们是正确的.
同时显示退出代码为65280.
通过以下方式,我在perl中调用它
我的$ cmd5 ="cmd.exe/c MSUpdates.exe/s/f1 \".\\ MSUpdates.iss \"/f2\"C:\\Diebold\\Logs\\MSUpdates.log\"";
系统($ cmd5);
我在日志文件中看到的以下错误
Hi,
I have created two sbx parts. both the parts are using a perl file. when i run both parts simulataneously, first part gets executed successfully but for second part it is giving error saying can''t spawn cmd.exe.
It is happeneing only on one terminal on rest of the terminal it works fine.
I have checked the environment varibale setting for cmd.exe but they are correct.
Also it is showing exit code as 65280.
By following way i am calling it in perl
my $cmd5 = "cmd.exe /c MSUpdates.exe /s /f1\".\\MSUpdates.iss\" /f2\"C:\\Diebold\\Logs\\MSUpdates.log\"";
system($cmd5);
below errors i can see in log file
Can't spawn "cmd.exe /c MSUpdates.exe /s /f1".\MSUpdates.iss" /f2"C:\Diebold\Logs\MSUpdates.log"": No such file or directory at MSUpdates.pl line 68.
Can't spawn "cmd.exe /c call RestoreSR.cmd": No such file or directory at MSUpdates.pl line 69.
Can't spawn "cmd.exe": No such file or directory at MSUpdates.pl line 85.
请让我知道是否有人遇到相同的问题.
Please let me know if some has faced same issue.
推荐答案
Can't spawn "cmd.exe /c MSUpdates.exe /s /f1".\MSUpdates.iss" /f2"C:\Diebold\Logs\MSUpdates.log"": No such file or directory at MSUpdates.pl line 68.
Can't spawn "cmd.exe /c call RestoreSR.cmd": No such file or directory at MSUpdates.pl line 69.
Can't spawn "cmd.exe": No such file or directory at MSUpdates.pl line 85.
请让我知道是否有人遇到过同样的问题.
Please let me know if some has faced same issue.
这篇关于Perl脚本产生错误,因为无法生成cmd.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!