external binary reading standard in
Markus O Kaukonen
markus.kaukonen at iki.fi
Wed Jul 31 04:22:09 EDT 2002
Dear all,
How to execute a external (binary) program reading from standard input
in a python code ?
For example : /home/mok/my_prog.bin < my_input.txt
My system is Linux and the binary is written originally in fortran 90
(if that should matter).
I tried
os.popen('/home/mok/my_prog.bin < my_input.txt ')
with no success
Best Wishes,
Markus Kaukonen, Finnland
More information about the Python-list
mailing list