Here is part of my linux bash script. I need to input some command line arguments to ./AAAAA executable, but it does not see them. When I wrap them up with <<end .. end, it shows me an "unexpected EOF" error. I've tried to put all input files around .. - didn't help either. I am running out of ideas.
while [ "$month" -le 9 ]
do
while [ "$day" -le 31 ]
do
"AAAA_15-0$month-$day_text.ff"
xargs ./EXECUTABLE <<EOF
"AAAA_15-0$month-$day_text.ff"
"AAAA_15-0$month-$day_text"
"AAAA_15-0$month-$day_text.det"
ZZZ.txt
XXX.txt
CCC.txt
VVV.txt
BBB.txt
EOF
mv "AAAA_15-0$month-$day_text"*"."* "15-0$month-$day_text"
day=`expr $day + 1`
done
day=`expr $month + 1`
done
./AAAAAexecutable works, so it's hard to say. Does it have any documentation ? Or do you have its source code ?stdin(standard input stream). So your executable should read it from thestdinstream.