On Sun, Feb 12, 2006 at 01:25:06PM +0000, Peter Bortas (nu med mindre Opera) @ Pike (-) developers forum wrote:
Process.run() is a thin wrapper around Process.Process that collects stdout, stderr and exitcode and return them in a mapping. This could potentially result in huge strings, but will do what most users want and even already do when they call create_process() with both pipes bound.
could this also take a string as argument which is to be sent to stdin?
i thought about something similar (ie, an easier interface), but instead of just returning strings it would be taking callback functions as arguments that and then internally set up the stdout, stderr pipes with those callbacks. the returned process object would have a write() function, and all the buffer magic would be handled internally. yours is much easier for most people though.
greetings, martin.