Re: finding status of pppd in demand mode
On Monday 15 July 2002 12:32 pm, martin f krafft wrote:
> also sprach ben <benfoley@rcn.com> [2002.07.15.2125 +0200]:
> > > reflected in /proc/net/route (/sbin/route) or /proc/net/dev
> > > (/sbin/ifconfig). pinging a host on the outside is not a good way to
> > > query the status for obvious reasons, so i am wondering if you know of
> > > a way to query a running on-demand pppd for its link status.
> >
> > just thought of netstat -i pppd0. that should tell you if the link is up
> > or not.
>
> thanks for the suggestion, but compare this to /proc/net/dev...
> netstat -i also does not show a difference...
okay, last guess. how about using ps to poll the wchan status of the
process--or am i completely missing the point of what you're trying to
achieve?
ben
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: