up to date 
HomeProjectsTagsMembersGroupsHelp

Process wrapper for piped processes in Win32

OverviewWikiNewsVersionsLatest

Project Description

ProcessWrapper 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:

  • load the ProcessWrapper-Core package via Monticello
  • get the plugin: loading the Monticello package offers the automatic download of the plugin, or you can download it by: ProcessWrapper downloadPlugin.
  • print it:
    ProcessWrapper new
        useStdout;
        startWithShellCommand: 'echo hello';
        upToEnd
    
The plugin code is available here, under the MIT licence.

Caveats:
  • #closeStdout and #closeStderr will block the image in most cases. Don't use them unless you know what you're doing.
  • #exitCode crashes the image if the process hasn't terminated yet. Use #isRunning and #waitForExitFor: before #exitCode to avoid these crashes.
  • After loading a new Monticello version the plugin is not updated (use ProcessWrapper >> #checkPlugin)

What might come next:
  • A console for cmd.exe might be a nice example
The repository has been set to Read only, to stop empty packages getting committed to it. If you have an improvement, then send me an email, and I'll add it to the repository.

Members

Creator:Levente Uzonyi
Admin:Levente Uzonyi, Balázs Kósi

Tags

squeak

License

Code commited to this repository will be automatically under MIT license.

Registration

MCHttpRepository
location: 'http://www.squeaksource.com/ProcessWrapper'
user: ''
password: ''

Packages

  • ProcessWrapper-Core
  • ProcessWrapper-Plugin
  • ProcessWrapper-Tests

Links

http://www.squeaksource.com/ProcessWrapper.html
http://www.squeaksource.com/ProcessWrapper

Global:Read

Statistics

Registered:15 July 2007 4:02:50 pm
Total Releases:0
Total Versions:23
Total Downloads:3194
XHTML | CSS | RSS17 July 2018