[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: fork and exec
On 19:39 Sat 24 May , Michael Blizek wrote:
> If you searching for an "exec() which starts a command in a new process" you
> can look at the system() call. If you want to read/write from/to stdout/stdin,
> you can use popen. If you want to do both, have have to do a fork(), some
> dup2() and an exec(). See
> http://www.gnu.org/software/libc/manual/html_node/Processes.html#Processes
> under "Running a Command"/"Pipe to a Subprocess".
(I meant both read *and* write from/to stdout/shdin of a single process you
created)
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ