Parrallel processing from the bash commandline


for i in `seq 1 40`; do echo $i; /tmp/script.sh >> /tmp/script.out 2>&1 & done

Note the lack of ‘;’ before ‘done’. The ‘&’ indicates the end of the statement.


Leave a Reply

Your email address will not be published. Required fields are marked *