eShopping wrote: > At 13:26 11/06/2009, you wrote: >> eShopping wrote: >>> import subprocess >>> x = subprocess.Popen(args="poly.exe",stdin=subprocess.PIPE) >>> for item in ["polyin.dat", "polyout.dat", "polyout.plt"]: >>> x.stdin.write('%s\n' % item) >>> but got the same error message >> >> Above code would seem to be correct. >> >> Are you sure the Fortran program accepts the names? >> One easy way to test this is to try >> >> C:\> poly.exe < poly_files.txt >> >> in a CMD program (or COMMAND or whatever the console program is called >> nowadays at Win* systems). > > Tried piping the input as suggested but POLY ignores the pipe and just > asks me for the names of the files as if we were in interactive mode.
Can you provide an example of the Fortran program session? Especially the part where it asked for file name. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor