Hi,
I start pppd process in my software with “logstatus” option using spawnvp.
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 ?
Thaks in advance
Patrice
Patrice <priou@bcisa.com> wrote in message news:as7s9c$s01$1@inn.qnx.com…
Hi,
I start pppd process in my software with “logstatus” option using spawnvp.
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”.
-xtang
popen() does exactly that.
–
Cheers,
Adam
With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <pschon@baste.magibox.net>
Xiaodan Tang <xtang@qnx.com> wrote in message
news:as7tbf$ftn$1@nntp.qnx.com…
Patrice <> priou@bcisa.com> > wrote in message
news:as7s9c$s01$> 1@inn.qnx.com> …
Hi,
I start pppd process in my software with “logstatus” option using
spawnvp.
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”.
-xtang