Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: TheSaint Newsgroups: comp.lang.python Subject: Re: how to get PID from subprocess library Followup-To: comp.lang.python Date: Sun, 22 May 2011 21:41:50 +0800 Organization: Aioe.org NNTP Server Lines: 15 Message-ID: References: NNTP-Posting-Host: vO6jl+n7RtkuY7YxPJZHfQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@aioe.org User-Agent: KNode/4.4.11 X-Notice: Filtered by postfilter v. 0.8.2 Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5974 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 account. Unfortunately I'll have to study it some more. BTW. I removed grep from the command. Python does it with the *in* statement :) -- goto /dev/null