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
Post a Comment