Hi.

On Thu, 12 Dec 2013 14:58:35 +0100
"Gian Uberto Lauri" <[email protected]>  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


-- 
To UNSUBSCRIBE, email to [email protected] 
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: 
http://lists.debian.org/[email protected]

Reply via email to