> If the only thing you want to know is whether the PPP interface is up, you 
> can run the ifconfig utility.  If the PPP port is alive, ifconfig will 
> report the fact.
> 
> Or do "grep ppp0: /dev/net/dev" and check the status return for whether PPP 
> is in the device table.  If it's activity you are interested in, the 
> counter in /dev/net/dev would tell you what you need to know when you parse 
> out the transmit and receive counters.

Question was orginally: How do I tell if a Linux box has an internet
connection?

Yes you can tell if it has an active ppp connection that way, but what if
its on a cable modem or LAN?

--

      Tim Fletcher                  .~.
                                    /V\       L   I   N   U   X
   [EMAIL PROTECTED]           // \\  >Don't fear the penguin<
[EMAIL PROTECTED]       /(   )\
                                   ^^-^^

Microsoft doesn't know how to fight Linux. 

Linux is really a dangerous opponent; a hydra which grows two heads when
you strike one off; a fast-evolving virus that Microsoft has no cure for.
Other organisms - companies - have adapted to it, learned from it, taken
advantage of it - and most importantly - helped it grow and flourish.

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to