i require a utility that identifies all users currently logged into the system. It should create a file called logfile which contains a list of usernames together with a count of how many login sessions they are currently running, for example
coc9io : 1
hbh8jd : 3
dg7hy : 1
root : 4
it should also print to a standard output message to the form
Total User: hbh8jd (3 sessions)
for each user with more than 2 current login sessions.
if possible can you you use comments so that i understand the code better
thanks very much
peter west