I have an "input_file" which contains a few entries. I read the input_file as shown below and pass each line as an argument to some_other_script.sh
The script some_other_script.sh
takes the argument, passes it to ant and then performs some processing.
Problem is that it only reads the first line and then stops processing. In fact, it also prints "Did the code return"
but nothing after that.
If I remove the "ant" statement in some_other_script.sh
, it works fine but of course, that is not what I want.
while read line
do
echo $line
./some_other_script.sh $line
echo "Did the code return"
done < "input_file"
I have tried a number of combinations, but none of them have worked.