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.
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.