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

how to start a delayed shutdown over ssh and disconnect immediately?



debian-user:

Is there a way to start a delayed shutdown over SSH and disconnect
immediately (e.g. non-blocking)?


I've tried:

    ssh user@host sudo shutdown -h +1 &

but shutdown blocks until it finishes.


I've also tried:

    ssh user@host sudo shutdown -h +1 &; exit

But sudo chokes on the ";" (e.g. sudo won't let me cheat).


TIA,

David



Reply to: