Hi.

On Thu, 12 Dec 2013 14:58:35 +0100
"Gian Uberto Lauri" <sa...@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


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20131212185745.23235a8cb651c7d9cced0...@gmail.com

Reply via email to