RE: Win32_Process.Create -- not starting process

2006-02-17 Thread Tim Golden
[abcd] | Tim, | I am skipping using the batch file and only executing the python | script directly...and so far it works fine. | | So now I have: | pid, retVal = | wmi.WMI(1.2.3.4).new(Win32_Process).Create(CommandLine=c: | \python\python.exe | c:\some_script.py) | | Thanks again...not sure

Re: Win32_Process.Create -- not starting process

2006-02-17 Thread abcd
Tim Golden wrote: BTW, I would recommend you either to use a raw string for that command line (rc:\python\python.exe c:\xx.py) or to double up your slashes (c:\\python\\python.exe c:\\xx.py). As it happens \p has no special meaning that I'm aware of, but better safe than sorry... i used

Re: Win32_Process.Create -- not starting process

2006-02-17 Thread EShames
On 2/14/2006 11:25 AM, abcd wrote: I am using Python to create a process on another computer. Both computers are on the same domain with admin privileges. On computer B I have a batch script which starts a python script. From computer A I am doing the following: import wmi w =

Re: Win32_Process.Create -- not starting process

2006-02-16 Thread abcd
Tim, I am skipping using the batch file and only executing the python script directly...and so far it works fine. So now I have: pid, retVal = wmi.WMI(1.2.3.4).new(Win32_Process).Create(CommandLine=c:\python\python.exe c:\some_script.py) Thanks again...not sure why when using the batch file

Re: Win32_Process.Create -- not starting process

2006-02-15 Thread abcd
Tim, Ok, well I verified that my python script and batch script are working properly. In fact, if I double click on the batch script (when its on Computer B), it starts the python script and the script runs fine with no problem. However when I try to execute the batch script from computer

RE: Win32_Process.Create -- not starting process

2006-02-15 Thread Tim Golden
[abcd] |Ok, well I verified that my python script and batch script are | working properly. In fact, if I double click on the batch | script (when its on Computer B), it starts the python script and the script runs | fine with no problem. That's all very well, and it does confirm that

Re: Win32_Process.Create -- not starting process

2006-02-15 Thread abcd
so far i tried adding SET c:\tmp.txt start SET c:\tmp2.txt ...and I saw both tmp files created but no python running. I still have to try skipping the batch file...i'll let u know. thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Win32_Process.Create -- not starting process

2006-02-15 Thread Matt
abcd [EMAIL PROTECTED] wrote: .however the python script that is called from the batch script One thing I have learned about launching programs from batch files like this is that if the launched program tries to prompt the user for imput at the command line, everthing goes haywire since it

RE: Win32_Process.Create -- not starting process

2006-02-14 Thread Tim Golden
[abcd] | I am using Python to create a process on another computer. Both | computers are on the same domain with admin privileges. | | On computer B I have a batch script which starts a python | script. From computer A I am doing the following: | | import wmi | w = wmi.WMI(1.2.3.4) | p =