<br><br><div class="gmail_quote">On Fri, Jul 16, 2010 at 7:21 AM, Linux Lingam <span dir="ltr">&lt;<a href="mailto:linuxlingam@gmail.com">linuxlingam@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

dear all,<br><br>i&#39;d love to drift to sleep listening to some audio or music playing via mplayer on my ubuntu 9.04,<br>but obviously, once asleep, don&#39;t want to get up to quit mplayer and shutdown the laptop.<br>
likewise, i&#39;d also love to wake up to mplayer after the laptop autoboots into ubuntu.<br>

<br>any way of doing this automagically?<br><br>the first may be easy, but the second a tad difficult<br>as my laptop uses rEFIT on the macbookpro.<br><br>tried googling, but came across too many outofcontext pages.<br><br>

</blockquote><div>how about a simple cli command as below<br>$ sudo shutdown 8:00<br>[sudo] password for user: <br><br>Broadcast message from user@klpt<br>    (/dev/pts/0) at 7:36 ...<br><br>The system is going down for maintenance in 24 minutes!<br>

<br>**<br>so the command basically is<br>sudo shutdown &quot;at whatever time&quot;<br><br>and the machine will shutdown any open programmes and the computer<br><br>ram<br> <br></div></div><br>