Re: [python-win32] [SPAM-Keyword] - Re: Bug with system()/popen() ? - Found word(s) XXX in the Text body

2005-05-13 Thread Ludvig Strigeus
Hi Tim. When I did my tests I used r"", but I forgot it when i wrote the email below. Even if I use r"" it doesn't work. The wrong stuff is put into Argv[2] /path:C:\Temp /notempfile /closeonend Instead of /path:"C:\Temp" /Ludvig -Original Message- From: Tim Roberts [mailto:[EMAIL PRO

Re: [python-win32] Bug with system()/popen() ?

2005-05-13 Thread Tim Roberts
On Fri, 13 May 2005 05:08:13 -0400, "Ludvig Strigeus" <[EMAIL PROTECTED]> wrote: >I'm trying to use system to run the following command: > >cmd = C:\Program Files\Tortoise SVN\bin\TortoiseProc.exe >Argv[1] = /command:update >Argv[2] = /path:"C:\Temp\Test" >Argv[3] = /notempfile >Argv[4] = /close

Re: [python-win32] Bug with system()/popen() ?

2005-05-13 Thread Ludvig Strigeus
Title: Message Hm sorry,   I missed the r"" in my code below. I used r"" in my tests. system still fails.   Thanks anyway.   Someone told me to prepend "; " to the command line, that seems to work. Any idea why?   /Ludvig -Original Message-From: Bob Gailer [mailto:[EMAIL PR

Re: [python-win32] Bug with system()/popen() ?

2005-05-13 Thread Bob Gailer
At 02:08 AM 5/13/2005, Ludvig Strigeus wrote: I'm trying to use system to run the following command: cmd  = C:\Program Files\Tortoise SVN\bin\TortoiseProc.exe Argv[1] = /command:update Argv[2] = /path:"C:\Temp\Test" Argv[3] = /notempfile Argv[4] = /closeonend But all my attempts to convert this t

Re: [python-win32] how to run exe from python with out using command prompt

2005-05-13 Thread Nalli Dinesh
Use popen3 to do the same. Eg: code for u import os FILENAME='test2.py' env={};env['ENVIRON_UPDATE']='123';os.environ.update(env) os.environ['ENVIRON_DIRECT_SETTING']='123' cmdline='c:\python24\python.exe -u %s'%FILENAME fs=os.popen3(cmdline,'b') print fs[1].read() On 5/13/05, Bhanuprakash <[EMA

[python-win32] how to run exe from python with out using command prompt

2005-05-13 Thread Bhanuprakash
Hi     I would like to ask something     How to run .exe from python without using following code       Import os Os.system (‘some.exe’)   Am awaiting for your response   With regards   Bhanu Prakash Nukala, Neilsoft Ltd, PUNE Phone : +912026052851/52 ext : 2

[python-win32] Bug with system()/popen() ?

2005-05-13 Thread Ludvig Strigeus
I'm trying to use system to run the following command: cmd = C:\Program Files\Tortoise SVN\bin\TortoiseProc.exe Argv[1] = /command:update Argv[2] = /path:"C:\Temp\Test" Argv[3] = /notempfile Argv[4] = /closeonend But all my attempts to convert this to a linearalized command line fails... This i