Re: how to get PID from subprocess library

2011-05-22 Thread GMail Felipe
On 22/05/2011, at 10:41, TheSaint wrote: > Kushal Kumaran wrote: > >> You could look for a way to make aria2c not become a daemon and use >> subprocess.Popen to start it. That gives you the PID and ways to see >> if the process is still running > > I see. It's a step that I've to get on my a

Re: subprocess pipe question

2011-02-22 Thread GMail Felipe
On 22/02/2011, at 20:44, Rita wrote: > I have a process like this, > > def run(cmd): > #cmd=a process which writes a lot of data. Binary/ASCII data > p=subprocess.Popen(cmd,stdout=subprocess.PIPE) > > I would like to get cmd's return code so I am doing this, > > def run(cmd): > p=subpro

Re: float from numbers in text file

2010-06-21 Thread GMail Felipe
On 21/06/2010, at 20:26, davidgp wrote: On Jun 21, 4:18 pm, Stephen Hansen wrote: On 6/21/10 4:03 PM, davidgp wrote: sorry :) Okay, I should be more specific: include full tracebacks and some real copied and pasted code :) Don't throw away nice debugging information Python gave you,