Hi guys,
I was wondering how to run shell scripts using the tcl exec function and wait for them to finish until I can start the next command...
Long story short:
Cheers
I was wondering how to run shell scripts using the tcl exec function and wait for them to finish until I can start the next command...
Long story short:
Code:
foreach i $various_Shell_Scripts {
[b]# the commands in each $i are rather complex and long and
# I want to execute them in the background[/b]
exec "$i &"
}
[b]# Once they are all launched I want to wait for all of them
# to complete and then execute one last shell
# but I do not know how to wait
# with [i]after[/i] maybe?[/b]
exec $another_Shell_Scripts
Cheers