I am running a Perl script in a loop in a shell script:
while [ $currentDate -le $toDate ]; do
// code here...
exec /users/my_user/script_name $currentDate
// code here...
done
I have confirmed the while-loop loops. However, after one run of the Perl script, the while-loop ends.
Could someone please shed some light on this?