On 9/18/07, <b class="gmail_sendername">Brian Walter</b> &lt;<a href="mailto:blwalter@gmail.com">blwalter@gmail.com</a>&gt; 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>&gt; It would be nice to be able to schedule certain tasks when the backend<br>&gt; is idle.&nbsp;&nbsp;Mostly I&#39;m thinking of reboots for maintenance and such, but I<br>&gt; can see other tasks.<br>&gt;<br>
&gt; I&#39;ve not found a way to have the backend tell me:&nbsp;&nbsp;&quot;I&#39;m idle now, do<br>&gt; what you need&quot;.<br>&gt;<br></blockquote></div><br>What about using:<br><br>#mythshutdown --check<br>#if [ $? == 0 ]; then
<br>&nbsp; safe_to_shutdown<br>else<br>&nbsp; not_safe_to_shutdown<br>fi<br><br><br>Craig.