Re: Shutdown computer after a specific command has been executed
Hi.
On Thu, 12 Dec 2013 14:58:35 +0100
"Gian Uberto Lauri" <saint@eng.it> wrote:
> Osamu Aoki writes:
> > But I want one line solution :-)
> >
> > sudo sh -c "apt-get update && apt-get upgrade; shutdown -h now"
>
> But there is the case where apt-get want a reply for the user and that
> is 'N' :) !! Baka!!! :)
sudo sh -c "apt-get update && apt-get upgrade -y && poweroff"
That's more like it. Depending on a hardware, 'shutdown -h now' can
leave the power on.
Reco
Reply to: