My shellscript looks like
for i in {1..5}
do
echo "Welcome $i times"
exec node nodefile.js
done
and the nodefile.js looks like
console.log 'running nodefile'
When I call the ./shellscript.sh there will only be displayed "Welcome x times" and "running nodefile" once.
Whats missing there? Is there anything that I have to return in nodefile or something else?