-----Original Message-----
From: Henrik Stoerner [mailto:henrik (at) hswn.dk]
Sent: Friday, November 25, 2005 12:34 AM
To: hobbit (at) hswn.dk
Subject: Re: [hobbit] Command-line scheduled disable
There's a generic "schedule" command in the Hobbit protocol to do that.
You can put a "schedule TIMESTAMP" in front of any command and Hobbit will execute that command at the requested time. TIMESTAMP is a Unix epoch time (seconds since Jan 1 1970). So your command would be:
STARTTIME=`date +%s --date="$START_OF_DISABLE"` $BB $BBDISP "schedule $STARTTIME disable $MACHINE.$TEST $DURATION"
That is in fact how the scheduled enable/disable works when you use it via the Web GUI.