popen() does exactly that.
With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <email@example.com>
Xiaodan Tang <firstname.lastname@example.org> wrote in message
Patrice <> email@example.com> > wrote in message
news:as7s9c$s01$> firstname.lastname@example.org> …
I start pppd process in my software with “logstatus” option using
When pppd is running I can see his status on my screen:
==> PPPD Status: pppd Started
==> PPPD Status: Connection Established
==> PPPD Status: Connection Terminated
How I can access (catch) these informations in my software ?
They are write to pppd’s stderr. You create a pipe (pipe()),
spawn pppd with the “write_end_fd” as it’s stderr, and read
these strings out from “read_end_fd”.