running os commands [newbie]

Harry George hgg9140 at seanet.com
Fri Jan 12 20:52:57 EST 2001


If you need for some reason to do this via a shell call, a la perl's
backquotes, then see commands.getoutput.

Langa Kentane <LangaK at discoveryhealth.co.za> writes:

> Greetings.
> 
> I want to create a list call dfout[]
> In the list, I want to put the output of the df command.
> How do I go about doing this?  I have been trying to find this in the docs,
> no luck so far.
> 
> Thanks in advance
> 
> __________________________________________________________
> Langa Kentane		| TEL: (011) 290 3218
> Security Administrator	| Cell: 082 606 1515
> DISCOVERY HEALTH		| http://www.discoveryhealth.co.za
> __________________________________________________________________
> 
> 

-- 
Harry George
hgg9140 at seanet.com



More information about the Python-list mailing list