To get this task done you have to parse UTMP file where all open terminal gets registered.
In the case of linux for example it is /var/log/wtmp.
And of course it is worth take a look at "who" source,
which is a part of coreutils package.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.