Re: how to start a delayed shutdown over ssh and disconnect immediately?
On Fri, Aug 14, 2009 at 11:08:16PM +0900, Osamu Aoki wrote:
> Without ">/dev/null 2>/dev/null", thus "sudo shutdown" process has its
> file connected to terminal. So upon killing SSH connection, SSH will
> send its subprocess SIGTERM. When terminal using program recieve
> SIGTERM and do not do fancy thing as screen, its is killed by kernel to
> enable unlinking of these files.
Minor tip. You can replace > /dev/null 2> /dev/null with the shorthand
&> /dev/null to achieve the same effect. :-)
HTH.
Kumar
Reply to: