I have a bash script i.e
#!/bin/bash
for number in {1..20..1}
do
if [ $number = 1 ]
then
sed 's/seed=0/seed=100/' input > input2
mv input2 input
elif [ $number = 2 ]
then
mv output output1
sed 's/seed=100/seed=200/' input > input2
mv input2 input
elif [ $number = 3 ]
then
mv output output2
sed 's/seed=200/seed=300/' input > input2
mv input2 input
.....and so on.....
fi
./compiled_code <input > output
done
for loop and if statements are working when i submit my bash script with qsub , but when i submit it with nohup , the for loop is not working , it runs the script only one time and does not resubmit the script again. I do not know why ? any body has any idea ? thanks in advance.