forking in bash is done using the & symbol, i knew that
I use it all the time, this time i needed to run a forked command in a loop, so i trie dthe following
[rhanna@hovercraft ~]$ for I in obs-api obs-server obs-worker obs-ldap; do xterm -e "ssh -t sandman ssh $I" & ; done
bash: syntax error near unexpected token `xterm'
Looks bad huh ! the fix is simple (notice the parenthesis around the xterm command)
[rhanna@hovercraft ~]$ for I in obs-api obs-server obs-worker obs-ldap; do (xterm -e "ssh -t sandman ssh $I" &) ; done
Recent comments
5 weeks 3 days ago
9 weeks 3 days ago
11 weeks 5 days ago
12 weeks 2 days ago
20 weeks 4 days ago
2 years 9 weeks ago
2 years 9 weeks ago
2 years 9 weeks ago
2 years 22 weeks ago
3 years 29 weeks ago