Practical System Programming with C by Sri Manikanta Palakollu

Practical System Programming with C by Sri Manikanta Palakollu

Author:Sri Manikanta Palakollu
Language: eng
Format: epub
ISBN: 9781484263211
Publisher: Apress


This program shows a long list of all the files and directories, including the hidden ones and the execl system call (see Figure 5-17). The advantage of this program is that with one process identifier, another process is also executed.

Figure 5-17Output for the execl system call

execlp( )

This system call is a bit more advanced than the execl() system call. It does not require the path for the binary built-in executable, but for custom executables, it does require the path to execute. The return type of this system call is an integer. It returns –1 if any error occurs and returns anything for successful execution.

The following shows the syntax.int execlp(const char *path, const char *arg, ..., NULL)



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.