Re: calling command line programs?
- From: Grant Edwards <grante@xxxxxxxx>
- Date: Sat, 10 Sep 2005 21:31:34 -0000
On 2005-09-11, Yevgeniy (Eugene) Medynskiy <ym66@xxxxxxxxxxx> wrote:
> This is probably a very newbie question, but after searching
> google and docs @ python.org I can't find an answer, so maybe
> someone would be able to help?
>
> I'd like to call command-line functions from my python script
> (like you would in perl using backticks)... Is there a way of
> doing this? And if so, how does the environment get treated (I
> have some variables in my env that the programs I'd be calling
> need to see).
Take a look at os.popen, os.spawn, or the popen2, and
subprocess modules.
That last one seems to be gaining popularity.
--
Grant Edwards grante Yow! PEGGY FLEMING is
at stealing BASKET BALLS to
visi.com feed the babies in VERMONT.
.
- Follow-Ups:
- Re: calling command line programs?
- From: chriss
- Re: calling command line programs?
- References:
- calling command line programs?
- From: Yevgeniy (Eugene) Medynskiy
- calling command line programs?
- Prev by Date: Re: encryption with python
- Next by Date: Re: calling command line programs?
- Previous by thread: calling command line programs?
- Next by thread: Re: calling command line programs?
- Index(es):
Relevant Pages
|