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

Re: Shutdown computer after a specific command has been executed



On Mon, 2013-12-09 at 14:48 +0200, Lars Noodén wrote:
> If you want it shut down regardless of the outcome of apt, then this
> should do it:
> 
>         sudo apt-get upgrade; sudo shutdown -h now

Wrong, if the upgrade should take to long, then you need to type the
password after the upgrade. Better run

$ sudo -i
# apt-get update ; apt-get upgrade ; shutdown -h now

Regards,
Ralf



Reply to: