in reply to Re: Stop a .exe
in thread Stop a .exe
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Stop a .exe
by BrowserUk (Patriarch) on Aug 21, 2012 at 11:06 UTC | |
Then you are using it wrong! Using the perl script as a substitute for your runme.exe:
And this Perl script to run the above using winopen2():
The latter reads a thousand lines from the former, sends "\n" to it which allows it to end, and then prints out the number of lines read (1001 including the "Press Enter to exit prompt") amd waits. If you check the task manager you'll see that the child process has terminated:
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] [d/l] [select] |
by anshumangoyal (Scribe) on Aug 21, 2012 at 13:14 UTC | |
It is not working. The Output from 'PwrUsbCmd.exe' is:
| [reply] [d/l] [select] |
by BrowserUk (Patriarch) on Aug 22, 2012 at 01:15 UTC | |
I think I've managed to re-create the situation you are seeing. I believe you are suffering from buffering. Please try the following code and report your results. This isn't intended as a complete solution, but rather a diagnostic to understand your problem.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] [d/l] |