Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
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

SQL
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.
Posted
Updated 22-Mar-11 20:19pm
v2
Comments
Sergey Alexandrovich Kryukov 23-Mar-11 16:37pm    
If you simple type CMD in "Run" dialog, will it spawn the console?
--SA
Sergey Alexandrovich Kryukov 23-Mar-11 16:38pm    
What happens if you manually type "cmd.exe /c MSUpdates.exe /s /f1".\MSUpdates.iss"?
If can spawn, open console and exit immediately because of "/C".
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900