On Wed, Dec 11, 2013 at 10:36 PM, Rob <robpilling_AT_gmail.com> wrote:
> [local-machine %] ssh user_AT_host & && xmessage connected
> [ssh-machine %] ...
>
> `xmessage connected' will be executed even though ssh hasn't exit(0)'d
> yet.
bash: syntax error near unexpected token `&&'
You probably meant this:
$ { ssh user_AT_host &; } && xmessage connected
Still, you would always be running "xmessage connected" even in the
case of "ssh user_AT_host" failing, which is not what he wants.
--
Fernando
Received on Thu Dec 12 2013 - 00:56:30 CET