Hi there,
better late than never:
You may be able to create a wrapper script that uses input redirection:
On a "un*x" system create a file
/usr/local/bin/feap-runner.sh
with the following content
#!/bin/bash
# first argument from command line is INPUT
INPUT=shift
# the feappv executable must be on the path
FEAPPV=$(which feappv)
# create the file, the input is read from
TMP="/tmp/feap-input-$$.txt"
# put the input (you would type by keyboard) in the file
echo "$INPUT" > $TMP
# enter
echo "" >> $TMP
# enter
echo "" >> $TMP
# enter
echo "" >> $TMP
# confirm with y
echo "y" >> $TMP
# remove the defaults file
if [ -f feapname ] ; then
rm feapname
fi
"$FEAPPV" < "$TMP"
rm "$TMP"
# EOF
make it runnable
chmod 755 /usr/local/bin/feap-runner.sh
and run it within the input file as argument:
/usr/local/bin/feap-runner.sh Iblock
The wrapper script should be usable from mathlab or wherever you need it. On windows you should be able to write a .bat file that does the same ...
Cheers,
Henrik