Thanks a lot for all you helps. Alan your tutorial is very helpful But I
have another problem which I will post soon.
On 2/26/07, Alan Gauld <[EMAIL PROTECTED]> wrote:
"Nagendra Singh" <[EMAIL PROTECTED]> wrote
> Thanks a lot for all the suggestions. I used the function
> subprocess.call ( 'c
"Nagendra Singh" <[EMAIL PROTECTED]> wrote
> Thanks a lot for all the suggestions. I used the function
> subprocess.call ( 'c:\abc.exe c:\data\file1'), but as before
> the command window opens and closes very fast
> a value of 1 is displayed. How do I see the results??
The result is 1 which ind
On 2/26/07, Nagendra Singh <[EMAIL PROTECTED]> wrote:
Thanks a lot for all the suggestions. I used the function subprocess.call(
'c:\abc.exe c:\data\file1'), but as before the command window opens and
closes very fast a value of 1 is displayed. How do I see the results?? I am
sorry if I sound
Thanks a lot for all the suggestions. I used the function subprocess.call (
'c:\abc.exe c:\data\file1'), but as before the command window opens and
closes very fast a value of 1 is displayed. How do I see the results?? I am
sorry if I sound dumb.
Singh
On 2/23/07, Alan Gauld <[EMAIL PROTECTED]
"Rikard Bosnjakovic" <[EMAIL PROTECTED]> wrote
>> How can I get python to display
>> the results in the interactive window or what is the right way to
>> do this.
>
> Use os.popen:
As Rikard, Richard and Hugo have pointed out there are
numerous ways to do this in Python.
The officially sanctio
On 2/22/07, Nagendra Singh <[EMAIL PROTECTED]> wrote:
> How can I get python to display
> the results in the interactive window or what is the right way to do this.
Use os.popen:
http://docs.python.org/lib/os-newstreams.html#os-newstreams
--
- Rikard.
_
On 2/22/07, Nagendra Singh <[EMAIL PROTECTED]> wrote:
What it does is that opens and closes the command window really fast and
displays a value of 1 in the interpreter. How can I get python to display
the results in the interactive window or what is the right way to do this.
I assume you're
Hi,
Take a lok=ok at the module named subprocess. You can catch the output
of invoked programs with this.
There is also a module called "commands" but it its not available in
windows.
Hugo
___
Tutor maillist - Tutor@python.org
http://mail.python
Hi,
I am trying to learn Python and have no prior programming experience. My
problem is that I am trying to call an .exe through Python, the exe gives
certain information about a file when I simply type it at the command
prompt, something like C:> getinfo C:\Singh\abc.bcd and it displays the
in