"Tino Dai" wrote
>
>I know that this is a python group but you might want to try the open
> source utility called Expect. It does what you need it to do without
> having
> having to go through this trial and error process with subprocess.
> http://expect.nist.gov/
Or use the Python wrappe
>> 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' % i
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 m
Hi
I have a legacy (FORTRAN) program called POLY.EXE which asks the
user interactively for three inputs (file names) from the
keyboard. I would like to run this program in batch and tried to
replace the interactive prompts with file names stored in a separate
file using this Python script:
Hi Bob
some replies below. One thing I noticed with the "full" file was
that I ran into problems when the number of records was 10500, and
the file read got misaligned. Presumably 10500 is still within the
range of int?
Best regards
Alun
At 17:49 09/02/2009, bob gailer wrote:
etrade.gr
Bob
sorry, I misread your email and thought it said "read on" if the
file was FORMATTED. It wasn't so I didn't (but should have). I read
the complete thread and it is getting a little messy so I have
extracted your questions and added some answers.
I'd like to examine the file myself. We
, A8, 1X, 1X, I6,
1X, 1X, A1) then we have a completely different issue to deal with.
Do not read on, instead let us know.
eShopping wrote:
Data format:
TIME 1 F 0.0
DISTANCE 10 F 0.0 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0
F=float, D=double, L=logical, S=string etc
The first part of
Bob
At 19:52 03/02/2009, you wrote:
etrade.griffi...@dsl.pipex.com wrote:
Data format:
TIME 1 F 0.0
DISTANCE 10 F 0.0 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0
F=float, D=double, L=logical, S=string etc
The first part of the file should contain a string (eg "TIME"),
an integer (1) and ano
Bob, Kent
thanks for the suggestions. Bob made the comment "If there is no
compelling requirement that myfunc's argument be in the form **kwargs
...", but I'm afraid I don't understand the difference between
myfunc (**kwargs)
and
myfunc (kwargs)
Would someone mind explaining this? I neve
Hi
I have a GUI program that extracts some information from the user as
strings, and I then want to use the strings to form an argument list
to another function. Hopefully the following code gives some flavour:
def myfunc(**kwargs):
while kwargs:
name, value = kwargs.popitem()
Hi
I am trying to read in non-ASCII data from file using Unicode, with
this test app:
vocab=[("abends","in the evening"),
("aber","but"),
("die abflughalle","departure lounge"),
("abhauen","to beat it/leave"),
("abholen","to collect/pick up"),
("das Abitur","A-levels"),
("abmachen","to take of
>Richard Querin wrote:
> > On 8/2/07, scott <[EMAIL PROTECTED]> wrote:
> >
> >
> >> I was thinking about finding a copy of that book, so maybe starting
> >> WxPython would be easier then and not worry about Tkinter. Is "WxPython
> >> in Action" a very good book?
> >>
> >>
> >
> > I'm no programme
12 matches
Mail list logo