in reply to Re^6: Running a perl script as a system command in another thread hangs while main thread reading from STDIN
in thread Running a perl script as a system command in another thread hangs while main thread reading from STDIN
I included that in my first reply to you
Yes. But subsequent to that you discovered that at least som of your systems no longer displayed the symptoms; hence my asking for "the output from perl -V on the affected system?
My hope was that it might be using some olther version of Perl that might explain the difference.
Anyhow, I cannot reproduce your problem on my system with any of the versions of perl I have available (including 5.18) and I don't have access to a 2012 OS; nor can I posit any reason for the behaviour you are showing outside of some wrapper environment (eg. "built in shell of Komodo Edit").
As the problem seems to be related to the version of the OS you run the code on rather than Perl itself; my best suggestion is to look there for differences -- eg. permission differences that might affect the inheritance of open handles or some such.
Another possibility would be to try substituting a piped-open for the backticks; or perhaps look at using Win32::Process to give you more control over the thing.
Or, if you have a MS support contract, try contacting them to see if they are aware of any differences in the OSs that might explain the symptoms.
Sorry for the hand-wavey reply, but nothing I am aware of begins to explain what you are seeing on this limited set of systems.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Running a perl script as a system command in another thread hangs while main thread reading from STDIN
by rmahin (Scribe) on Sep 30, 2014 at 17:54 UTC | |
|
Re^8: Running a perl script as a system command in another thread hangs while main thread reading from STDIN
by rmahin (Scribe) on Sep 30, 2014 at 18:33 UTC |