compiled program input

M

mehmetmutigozel

i have a compiled program named m.exe. when i execute it asks me to
enter a parameter like "me.dat". the coder didn't manage the argv for
this program and i only have the executable.

is there a vay to call this executeable from python and give parameters
to it?
m.exe
input1 ? me.dat
....

something like this
 
M

mehmetmutigozel

i found something like

import os

os.system("c\\m.exe")

but it gives

An endfile record was detected in a READ statement (unit=40).
Error occurs at or near line 51 of _MAIN__
12

still don't have anything :(
 
F

Fredrik Lundh

i have a compiled program named m.exe. when i execute it asks me to
enter a parameter like "me.dat". the coder didn't manage the argv for
this program and i only have the executable.

is there a vay to call this executeable from python and give parameters
to it?


something like this

does

echo me.dat | m.exe

work ?

</F>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,285
Messages
2,571,416
Members
48,108
Latest member
Virus9283

Latest Threads

Top