I'm running a command similar to the following

```
getHosts | xargs -I{} -P3 -n1 ssh {} 'startServer; sleep 5; grep -m 1 "server up" <(tail -f log)'

```

The problem is that it seems like ssh hangs for a while sometimes even well after the server has come up. Is there any problem with this command that might cause it not to terminate so that parallel execution can continue? When I run the command in a remote shell, the check for the server coming up seems reliable and closes punctually when "server up" is written to the logs.