Re: process cannot access the file because it is being used by other process

2010-06-21 Thread Thomas Jollans
On 06/21/2010 12:18 PM, shanti bhushan wrote: > [snip] > > i used below code > > import subprocess > import time > def invoke_server1(): > proc = subprocess.Popen(r'C:\WINDOWS\system32\cmd.exe /C "D: > \372\pythonweb\mongoose-2.8.exe -root D:\New1\"') > > > invoke_server1() > > > time.sle

Re: process cannot access the file because it is being used by other process

2010-06-21 Thread Chris Rebert
On Mon, Jun 21, 2010 at 6:44 AM, Felipe Vinturini wrote: > Your problem seems to be with stdout redirect to the same file: > ">YourOutput1.txt". Windows is not like Unix like systems! > You can try, instead of redirecting to the same file, redirect each to a > separate file and use the following

Re: process cannot access the file because it is being used by other process

2010-06-21 Thread Felipe Vinturini
On Mon, Jun 21, 2010 at 7:18 AM, shanti bhushan wrote: > On Jun 21, 2:15 pm, Tim Golden wrote: > > On 21/06/2010 09:23, shanti bhushan wrote: > > > > > i am using below code ,it works fine on ordinary python 26 ,but when i > > > use this script in my python testing tool it gives me message "proce

Re: process cannot access the file because it is being used by other process

2010-06-21 Thread shanti bhushan
On Jun 21, 2:15 pm, Tim Golden wrote: > On 21/06/2010 09:23, shanti bhushan wrote: > > > i am using below code ,it works fine on ordinary python 26 ,but when i > > use this script in my python testing tool it gives me message "process > > cannot access the file because it is being used by other pr

Re: process cannot access the file because it is being used by other process

2010-06-21 Thread Tim Golden
On 21/06/2010 09:23, shanti bhushan wrote: i am using below code ,it works fine on ordinary python 26 ,but when i use this script in my python testing tool it gives me message "process cannot access the file because it is being used by other process" for the second time invoking of mongoose serve