scripting - running shell script within shell script in a nested for loop -
hi i've got simple script executes script in nested loop
my problem while double loop executing fine without addition of script needs run @ each iteration, if add script execution happens once.
any ideas why?
for ((i = 0; i<10; i++)) echo "outer forloop $i" ((j = 0; j<6; j++)) exec ./run.sh done done
thanks andreas
exec replaces current process new process. use ./run.sh
Comments
Post a Comment