linux - My shell script stops after exec -


i'm writing shell script looks this:

 in $actions_dir/*                 if [ -x $i ];                     exec $i nap             fi     done 

now, i'm trying achieve list every file in $actions_dir able execute it. each file under $actions_dir shell script.

now, problem here after using exec script stops , doesn't go next file in line. ideas why might be?

exec replaces shell process. remove if want call command subprocess instead.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -