Re: Fwd: fork and exec

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux