starting other programs from within python

Frank Fejes none at nospam.org
Thu Jul 18 12:00:32 EDT 2002


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.

--frank



More information about the Python-list mailing list