[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] How to run jobs ONLY when no users are logged in?

On Mon, Jul 19, 2004 at 10:49:44AM -0600, bgore@xxxxxxxxxx wrote:
> So Nick, can we make a formal request to add the login user count to the Machine ClassAd then? (If so, consider this it)

On the Mac and on Windows, it's very easy for us to say "Is there someone
logged in" as in "Is there a screen floating around that says "press 
control-alt-delete" to login". 

On most other platforms, are you OK with just the output of the 'w' command
(ie how many valid entries in the utmp file)? We could try and go one further,
and figure out of the machine is at an xdm/gnome-login/kde-login prompt, though
it could make for a messy startd ad

> I've tried to do this via STARTD_CRON on Windows by poking around in the registry and it's tricky due to the security model, so if you have the info already, it'd be great to just publish it for us.