On Tue, Aug 11, 2009 at 23:05 -0700, David Christensen wrote:
> 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).
How about
% ssh user@remote sudo "echo shutdown -h +1 | at now"
HTH
Siggy
--
Please don't Cc: me when replying, I might not see either copy.
bsb-at-psycho-dot-informationsanarchistik-dot-de
or: bsb-at-psycho-dot-i21k-dot-de
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Attachment:
signature.asc
Description: Digital signature