March 06, 2010
I've committed an update of my suggested version of std.process.

Code:   http://github.com/kyllingstad/ltk/blob/master/ltk/process.d Docs:   http://kyllingen.net/code/ltk/doc/process.html


I've implemented Steve's suggestions as well as some of my own.  The major changes are:

1. spawnProcess() now searches the PATH, unless a path separator is found in the executable name.

2. New versions of spawnProcess() in which the command and its arguments can be specified in one space-separated string.

3. Options to redirect stdout to stderr, stderr to stdout, or both.

4. Can specify the environment variables for the process.

5. Streams now stored as "File"s in Pid, not POSIX file descriptors.

6. Added dependency on ltk.file and ltk.system, which contain my suggestions for (very small) additions to std.file and std.system.


Please have a look and let me know what you think.  There is more that can be done still, like adding a few more convenience functions for the most common uses of spawnProcess().

-Lars


-- 
Lars Tandle Kyllingstad
@: lars at kyllingen.net
#: 40233221
w: http://www.kyllingen.net