by karog » Tue Sep 24, 2013 6:24 pm
Before you unplug, run
$this->bbcode_second_pass_code('', '/sbin/shutdown -h now')
and wait one minute.
You can make an alias for that you so you can type less and remember more easily. Suppose your pogo hostname is ppe02 (and resolves to its ip address else use the ip address). you can do:
$this->bbcode_second_pass_code('', 'alias ppe02sd='ssh -q ppe02 /sbin/shutdown -h now'')
on your main machine and setup ssh-keys so you don't need to login. Then just doing ppe02sd on your main machine will do it. Of course you can choose any names you like. My example was ppe02 for pp - pogoplug e02 - that's the model, and the sd for the alias is for shutdown.
You could even add to the alias
$this->bbcode_second_pass_code('', '; sleep 60; echo "ok to unplug"')
so that it will tell you when the minute is up.
Note that one minute is an estimate. If you have lots of stuff running that is slow to shut down, you may need more time.