Hi all
I'm trying to make something like authomatized "who" program. It must be able to untherstand when a user is logging in or out so it needs to know innediatly if the utmp file is changed. How may I do it without making something like:
...
while (1)
{
u_entry=getutent();
....
}
...
?
thanks
I'm trying to make something like authomatized "who" program. It must be able to untherstand when a user is logging in or out so it needs to know innediatly if the utmp file is changed. How may I do it without making something like:
...
while (1)
{
u_entry=getutent();
....
}
...
?
thanks