June 01, 2005 calling another program | ||||
---|---|---|---|---|
| ||||
How would I execute program B from within program A. Thanks, Andrew |
June 01, 2005 Re: calling another program | ||||
---|---|---|---|---|
| ||||
Posted in reply to a.c.edwards | 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.
|
Copyright © 1999-2021 by the D Language Foundation