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

Re: [Condor-users] Laptops as condor execute machines

On Jun 2, 2011, at 11:05 AM, Eric Abel wrote:
> Does anyone know how to setup a laptop to only accept jobs when it is plugged in vs running on battery?

On Macintosh, you could use MarcoPolo or a similar context-switching tool that detects power state changes and activates or deactivates execution appropriately.

On Linux, you need something -- a daemon or cron job -- that regularly polls "acpi -a" (or /sys/power/) and acts accordingly.  *BSD is probably similar.

No idea how to do it with Windows.

Rich Pieri <ratinox@xxxxxxx>
MIT Laboratory for Nuclear Science
24-030a / (617) 452-4081