Go to the source code of this file.
Functions | |
int | pexec (const char *cmdpath, char *const argv[], int background, const char *input, char *output, size_t noutput) |
Execute a file in a new process. |
API of pexec.
int pexec | ( | const char * | cmdpath, | |
char *const | argv[], | |||
int | background, | |||
const char * | input, | |||
char * | output, | |||
size_t | noutput | |||
) |
Execute a file in a new process.
This function executes a file in a new process (created with fork).
cmdpath | Path to file which should be executed. | |
argv | The argument vector | |
background | If this flag is setted to one, the process will be forked to background | |
input | Input String (needed for IPC from parent to child) | |
output | Output String (needed for IPC to get output from child) | |
noutput | Size of output string |