On 9/18/07, <b class="gmail_sendername">Brian Walter</b> <<a href="mailto:blwalter@gmail.com">blwalter@gmail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Yan Seiner wrote:<br>> It would be nice to be able to schedule certain tasks when the backend<br>> is idle. Mostly I'm thinking of reboots for maintenance and such, but I<br>> can see other tasks.<br>><br>
> I've not found a way to have the backend tell me: "I'm idle now, do<br>> what you need".<br>><br></blockquote></div><br>What about using:<br><br>#mythshutdown --check<br>#if [ $? == 0 ]; then
<br> safe_to_shutdown<br>else<br> not_safe_to_shutdown<br>fi<br><br><br>Craig.