Re: [dev] New utility "when"

From: Fernando C.V. <ferkiwi_AT_gmail.com>
Date: Thu, 12 Dec 2013 00:56:30 +0100

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

This archive was generated by hypermail 2.3.0 : Thu Dec 12 2013 - 01:00:08 CET