I wrote a perl code running on windows (w2k3) through cygwin.
My code construct a cmd and then executing the cmd by calling system(), e.g. system($cmd). What the cmd does is to silently install a piece of software on the host and reboot the host afterwards. No user interaction is required.
Before I execute system() in my perl code, I ran the cmd constructed by my code from DOS prompt. It went very smoothly, i.e. the software is installed and the host is rebooted successfully.
However, when I tried to execute the same cmd through my perl code by calling system(). I always got an error message in a pop-up window --
The title of the error message window is:
cmd.exe - DLL Initialization Failed
The actual error message is:
The application failed to initialize because the window station is shutting down.
Could someone help?
My code construct a cmd and then executing the cmd by calling system(), e.g. system($cmd). What the cmd does is to silently install a piece of software on the host and reboot the host afterwards. No user interaction is required.
Before I execute system() in my perl code, I ran the cmd constructed by my code from DOS prompt. It went very smoothly, i.e. the software is installed and the host is rebooted successfully.
However, when I tried to execute the same cmd through my perl code by calling system(). I always got an error message in a pop-up window --
The title of the error message window is:
cmd.exe - DLL Initialization Failed
The actual error message is:
The application failed to initialize because the window station is shutting down.
Could someone help?