Process wrapper for piped processes in Win32
SqueakSource project pageProcessWrapper is a plugin + wrapper code for Win32 process execution with non-blocking stdin, stdout and stderr support.
The project aims to give features similar to OSProcess, but it's not related to it in any other way.
To try it:
The plugin code is available here, under the MIT licence.
Known issues:
- #closeStdout, #closeStderr blocks the image in most cases (don't use them)
- #exitCode kills the image if the process didn't terminate (use #isRunning and #waitForExitFor: before #exitCode)
- After loading a new Monticello version the plugin is not updated (use ProcessWrapper >> #checkPlugin)
- Accessing a ProcessWrapper instance which doesn't have a valid processPointer will crash the vm
What might come next:
- A nice console for cmd.exe might be a nice example
- bugfixes, api cleanup, more tests are on their way
ProcessWrapper-Tests-ErwinGillich.2.mcz
ProcessWrapper-Plugin-ErwinGillich.2.mcz
ProcessWrapper-Core-ErwinGillich.2.mcz
ProcessWrapper-Tests-ErwinGillich.1.mcz
ProcessWrapper-Plugin-ErwinGillich.1.mcz
ProcessWrapper-Core-ErwinGillich.1.mcz
ProcessWrapper-Tests-ul.1.mcz
ProcessWrapper-Core-ul.30.mcz
ProcessWrapper-Core-ul.29.mcz
ProcessWrapper-Core-ul.28.mcz
ProcessWrapper-Core-ul.27.mcz
ProcessWrapper-Core-ul.26.mcz
ProcessWrapper-Core-ul.25.mcz
ProcessWrapper-Core-ul.24.mcz
ProcessWrapper-Core-ul.23.mcz
ProcessWrapper-Plugin-ul.5.mcz
ProcessWrapper-Plugin-ul.4.mcz
ProcessWrapper-Core-ul.22.mcz
ProcessWrapper-Core-ul.20.mcz
ProcessWrapper-Core-ul.19.mcz
ProcessWrapper-Core-ul.18.mcz
ProcessWrapper-Plugin-ul.3.mcz
ProcessWrapper-Core-ul.13.mcz
ProcessWrapper-Core-ul.11.mcz
ProcessWrapper-Core-ul.6.mcz
ProcessWrapper-Core-ul.5.mcz
ProcessWrapper-Core-ul.4.mcz
ProcessWrapper-Core-kb.2.mcz