[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Shutdown computer after a specific command has been executed



Ralf Mardorf writes:
 > On Thu, 2013-12-12 at 14:58 +0100, Gian Uberto Lauri 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!!! :)
 > 
 > apt-get upgrade will ask the user to upgrade or not and that is wanted,
 > assumed the update was successful.

Sorry, it may ask if it has to preserve or not a configuration file
modified locally when a new version arrives with the package.

-- 
 /\           ___                                    Ubuntu: ancient
/___/\_|_|\_|__|___Gian Uberto Lauri_____               African word
  //--\| | \|  |   Integralista GNUslamico            meaning "I can
\/                 coltivatore diretto di software       not install
     già sistemista a tempo (altrui) perso...                Debian"

Warning: gnome-config-daemon considered more dangerous than GOTO


Reply to: