Given a machine name, I want to check if someone's logged in on that machine or not. Just a yes/no answer would be sufficient (I don't want their username). Any hints on what command to look for?
By 'logged in' - I mean using a graphical UI on that machine - ssh doesn't count.
You can assume that I have an authorized ssh login for this machine.