I am looking to replicate the following bash shell script sequence but in a tclsh shell
for script in $listOfScripts
do
./$script &
done
wait
echo "Done"
I don't care about the exit status of each of those scripts (actually I want to suppress any eventual errors) and the order of completion does not matter. I can't seem to figure out how to wait for all the background processes to complete in order to continue with my code.