I am trying to update a UNIX shell script to run only if the user is NOT logged into their UNIX account. I have considered using
finger
Then look for the text “On since”…
However I have found that when I finger a particular user account that I just logged into via Putty, that user supposedly “Never logged in.”
How would someone see if the user is physically logged into the UNIX system??
Thank you,
“who -a” … ? Shows also the associated terminal to a connected user.