Re: Help replacing os.system call with subprocess call

2008-04-07 Thread David Pratt
Hi Matt. My apologies, I was away a good part of the day and evening today. Here are the numbers for the different methods: original os.system call: 29.685759 s buffered stdout call:213.370982 s (with 1mb buffer) direct to stdout call:33.378756 s The second method worked great and is e

Re: Help replacing os.system call with subprocess call

2008-04-07 Thread David Pratt
Hi Matt. Many thanks. Sorry I had not seen your second post. I'll give this a try and time the completion to compare the differences and post back later today to show os.system, buffered imput and using a file directly for stdout. Regards, David Matt Nordhoff wrote: > David Pratt wrote: >> Hi

Re: Help replacing os.system call with subprocess call

2008-04-07 Thread Matt Nordhoff
David Pratt wrote: > Hi David and Matt. I appreciate your help which has got me moving > forward again so many thanks for your reply. I have been using > subprocess.Popen a fair bit but this was the first time I had to use > subprocess to capture large file output. The trouble I was having was > wi

Re: Help replacing os.system call with subprocess call

2008-04-07 Thread Gabriel Genellina
>> David Pratt wrote: >>> Hi. I am trying to replace a system call with a subprocess call. I have >>> tried subprocess.Popen and subprocess.call with but have not been >>> successful. The command line would be: >>> >>> svnadmin dump /my/repository > svndump.db En Mon, 07 Apr 2008 10:38:47 -0300, D

Re: Help replacing os.system call with subprocess call

2008-04-07 Thread David Pratt
Hi David and Matt. I appreciate your help which has got me moving forward again so many thanks for your reply. I have been using subprocess.Popen a fair bit but this was the first time I had to use subprocess to capture large file output. The trouble I was having was with the process would just

Re: Help replacing os.system call with subprocess call

2008-04-07 Thread Matt Nordhoff
Matt Nordhoff wrote: > David Pratt wrote: >> Hi. I am trying to replace a system call with a subprocess call. I have >> tried subprocess.Popen and subprocess.call with but have not been >> successful. The command line would be: >> >> svnadmin dump /my/repository > svndump.db >> >> This is what I

Re: Help replacing os.system call with subprocess call

2008-04-07 Thread Matt Nordhoff
David Pratt wrote: > Hi. I am trying to replace a system call with a subprocess call. I have > tried subprocess.Popen and subprocess.call with but have not been > successful. The command line would be: > > svnadmin dump /my/repository > svndump.db > > This is what I am using currently: > > os.

Re: Help replacing os.system call with subprocess call

2008-04-06 Thread David Harrison
On 07/04/2008, David Harrison <[EMAIL PROTECTED]> wrote: > On 07/04/2008, David Pratt <[EMAIL PROTECTED]> wrote: > > Hi. I am trying to replace a system call with a subprocess call. I have > > tried subprocess.Popen and subprocess.call with but have not been > > successful. The command line wo

Re: Help replacing os.system call with subprocess call

2008-04-06 Thread David Harrison
On 07/04/2008, David Pratt <[EMAIL PROTECTED]> wrote: > Hi. I am trying to replace a system call with a subprocess call. I have > tried subprocess.Popen and subprocess.call with but have not been > successful. The command line would be: > > svnadmin dump /my/repository > svndump.db > > This is