On Mon, 2010-05-24 at 11:43 +0530, Arun Khan wrote: > On Sat, May 22, 2010 at 11:31 PM, Raja Subramanian > <[email protected]> wrote: > > On Wed, May 12, 2010 at 8:43 PM, Arun Khan <[email protected]> wrote: > >> I do something similar for overnight downloads on my netbook. The > >> system shuts down when there is 0 TCP connection. > > > > I just use "at", but I should look into something more sophisticated. > > > > My typical "at" usage: > > > > liraz:~# at now + 5 hours > > warning: commands will be executed using /bin/sh > > at> /sbin/poweroff > > at> <EOT> > > job 12 at Sun May 23 04:24:00 2010
I was about to respond if it is just turning off the system why not use 'shutdown +300' which does the same as above. But thought of checking the diff between shutdown and poweroff. I looks like shutdown does things more gracefully than poweroff. But shutdown does not switch off the machine, if you want shutdown to do so you need to use -P. As per the link below http://www.sunmanagers.org/pipermail/summaries/2001-October/000142.html http://linuxservertutorials.blogspot.com/2009/03/how-to-power-off-ubuntu-server-with.html _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
