Running external program from a D program [D2]

Jesse Phillips jessekphillips+D at gmail.com
Mon Feb 22 12:13:31 PST 2010


Jonathan M Davis Wrote:

> Jesse Phillips wrote:
> > Please note that I do not know how any of this will related to practices
> > on Windows. And sadly this is not D specific and actually C stuff.
> > 
> > 1. http://www.opengroup.org/onlinepubs/007908799/xsh/exec.html
> > 2. http://www.yolinux.com/TUTORIALS/ForkExecProcesses.html
> > 3. http://www.mkssoftware.com/docs/man3/dup2.3.asp
> 
> Well, it's good info. So, thanks. But it would be nice if that too were 
> nicely abstracted in phobos. The undocumented shell() command works, but it 
> uses the shell, so you have to worry about escaping characters. Bleh. In any 
> case, thanks for the info.
> 
> - Jonathan M Davis

Agreed, but hopefully it is enough to write your own wrapper. If you do, submitting a patch would be good; but as Lars pointed out, could be superseded anyway. Good luck.


More information about the Digitalmars-d-learn mailing list