How can I find out if someone is actively using a Linux computer in Python or Java?
<p>I want to write a program that ssh's into remote boxes and runs jobs there if the remote computer is not actively being used. I'll be logging in as clusterJobRunner@remoteBox, and the other user will be logged in as someLocalUser@remoteBox. </p>

<p>Is there a way to see if a remote user is actively using the box using either Python or Java?</p>
