Getting both PID and output from a command

Hugh Macdonald HughMacdonald at brokenpipefilms.com
Tue Mar 30 01:45:49 EST 2004


Fair enough - thanks for the suggestion....

I have actually already gone the other way, which works perfectly, thanks.
If I find problems with the method I'm using, then I will certainly take a
look at this one...

Hugh Macdonald

----- Original Message ----- 
From: "Cameron Laird" <claird at lairds.com>
To: <HughMacdonald at brokenpipefilms.com>
Sent: Tuesday, March 30, 2004 2:14 AM
Subject: Re: Getting both PID and output from a command


> In article <mailman.182.1079778728.742.python-list at python.org>,
> Hugh Macdonald <HughMacdonald at brokenpipefilms.com> wrote:
> >I suspect I'll probably use Donn Cave's suggestion when I give it a go on
> >monday - I'd rather not use any external modules if I can help it, and I
> >know that stderr gives me output in a format that I can read (I know
exactly
> >which command I want to run here, and I have the program working properly
> >except for not being able to stop if before it finishes on its own.....)
> .
> .
> .
> Please understand that, as external modules go, Pexpect
> is easy to like, because it's "pure Python".  It's just
> some Python source code.  You can choose to put it all
> inside *your* program, then there's nothing "external".
> If you wish, just think of it as a particularly long
> Usenet reply that has already been tested.
> -- 
>
> Cameron Laird <claird at phaseit.net>
> Business:  http://www.Phaseit.net
>
>





More information about the Python-list mailing list