On Fri, 16 Jun 2000,  arajesh wrote about,  how to read /var/log/utmp:
> Hi all,
> How do i read the utmp/wtmp files (in /var/log/) in my program? For
> example if i want to know who are all logged in then how do i get this
> information from these files. I know that the 'who' command reads from
> these files (i think it is the utmp file)  to get the currently logged
> in users. Similarly how do i do it in my program (in c).

man utmp/wtmp

man last

However i rather think you need to study 'netstat' a little as that give
most information on the netwroking subsystem.

> 
> Regards,
> Rajesh
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to [EMAIL PROTECTED]
> Please read the FAQ at http://www.linux-learn.org/faqs
-- 
Regards Richard
[EMAIL PROTECTED]
http://people.zeelandnet.nl/pa3gcu/


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to