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

Re: Shutdown computer after a specific command has been executed



On Thu, 2013-12-12 at 16:10 +0100, Ralf Mardorf wrote:
> sudo sh -c "apt-get update && apt-get dist-upgrade -y ; poweroff"

sudo sh -c "apt-get update && apt-get dist-upgrade --dry-run ; apt-get
dist-upgrade -y ; poweroff"

-y without a dry run :S, OTOH, the OP want's to go to sleep, so the
dry-run first doesn't improve something.

It's simply a bad idea to automate an upgrade. 




Reply to: