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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -