How to launch a huge number of processes in bash -


I am trying to run a lot of time from the command line, but I am not able to initiate the process in the background because Bash regards it as a syntax error.

 for  f in `seq 20`; Do ./a.out& ;; '& Amp;' Incorrect syntax for bash near  

How do I & amp; On the command line so that Bash does not complain, and I am allowed to run these processes in the background so that I can generate a load on the system.

PS: I do not want to break into it in many lines.

This works:

  f for `seq 20 `; Do it / A.out & amp; Command ends like   or  and ,   

& amp; , | .

This means that bash is expected to command between and and , but one can not get it, hence error.


Comments