Opens a process by creating a pipe, forking, and invoking the shell.
Access mode has to be either PIPE_RDONLY or PIPE_WRONLY. The
command string will not be trimmed by this function.
The function returns the following error codes:
E_EXIST if pipe is already connected.E_INVALID if access mode is invalid.E_SYSTEM if system call failed.| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(pipe_type), | intent(inout) | :: | pipe | Pipe type. | ||
| character(len=*), | intent(in) | :: | command | Name or path of binary to open. | ||
| integer, | intent(in) | :: | access | Open pipe for reading or writing. |