On Wed, 2 Feb 2000, h a wrote:
> Hi all,
>
> I am writing a small linux application and at some point i want to know if
> the user is hooked to the internet. how can i tell if the user has internet
> access at the moment ????
>
>
> thanx
> mark
If you need specific user .. then possibly you do ps aux and then filter
out his processes to see if any browser activity. Ping will give you
information about specific nodes. Judging if the 'user' has any socket
opened can be a bit lengthy .. (running through his open files and check
if any one of them is socket ..)
Koushik.
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to [EMAIL PROTECTED]
>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]