combine ping with a background process

19 Views Asked by At

What am I doing wrong here?

(sleep 2; touch /tmp/ok) & && ping google.com
-bash: syntax error near unexpected token `&&'

I'm using bash 3.2

0

There are 0 best solutions below