June 01, 2005
How would I execute program B from within program A.

Thanks,
Andrew


June 01, 2005
a.c.edwards wrote:
> How would I execute program B from within program A.
> 
> Thanks,
> Andrew
> 
> 

I think std.process has what you are looking for...

std.process

int system(char[] command)
    Execute command in a command shell. Returns exit status of command.

int execv(char[] program, char[][] arguments)
int execve(char[] program, char[][] arguments, char[][] environment)
int execvp(char[] program, char[][] arguments)
int execvpe(char[] program, char[][] arguments, char[][] environment)
    Execute program, passing it the arguments and the environment, returning the exit status. The 'p' versions of exec search the PATH environment variable setting for program.