GETCOMMANDSTATUS(3A) GETCOMMANDSTATUS(3A)
NAME
GetCommandStatus, GetCommandStatusV - execute a command and
return its exit status
SYNOPSIS
GetCommandStatus (func, arg, cmd, arg ...)
int (*func)();
int arg;
char *cmd;
char *arg;
GetCommandStatusV (func, arg, cmd, argv)
int (*func)();
int arg;
char *cmd;
char **argv;
DESCRIPTION
GetCommandStatus executes a command in a child process.
When the child exits, it calls the function func with the
argument arg, the process ID of the child process, and its
exit status. It uses AddChildHandler to register func . The
full pathname of the command to execute is in cmd and its
argument follows in a NULL-terminate list of parameters,
beginning with argument zero. GetCommandStatusV does the
same thing, except it expects the argument list (starting
with argument zero) in the array of strings argv.
SEE ALSO
fork(2), wait(2), signal(3), XtAddWorkProc(3Xt),
RunProcess(3A), AddChildHandler(3A)
Page 1 (printed 9/3/91)