starting other programs from within python

Peter Hansen peter at engcorp.com
Thu Jul 18 18:25:22 EDT 2002


Frank Fejes wrote:
> 
> On Wed, 17 Jul 2002 11:36:57 -0500, hejduk wrote:
> 
> > In article <3D349AA0.1AE34452 at engcorp.com>, "Peter Hansen"
> > <peter at engcorp.com> wrote:
> > I'm using python 2.2, on slak linux using gnome, and i'm monitoring the
> > memory usage with gtop.
> >
> > my main concern really is whether i'm starting the processes in the
> > right manner. would spawnv or something else be better? i'm new to
> > threads so i don't know whether they need to be stopped manually or
> > whether they'll shut down automatically.
> 
> If your goal is simply to execute applications from a menu, threads seem
> like overkill to me. <shrug> I'd simply use the usual fork/exec methods.  In
> Python, these are in the os module along with the spawn methods you refer
> to.

Just to clarify, I did not write any of the text included above.  
hejduk's response was in response to something I wrote, which
Frank has removed but forgot to delete the attribution line.

-Peter



More information about the Python-list mailing list