command substitution

Raphael Bauduin rb at
Mon Jul 16 11:35:18 CEST 2001


I was looking for a solution like in bash, which let you put the standard 
output of a command in a variable(in bash, you can do it like OUT=`ls` or 
OUT=$(ls) ).

If you have another way to take the standard output of a command and put it 
in a variable, it would be helpfull too.


          Open Source and Free Software Developers Meeting
See you at the 2002 edition. Check the 2001 sessions on
     Visit and subscribe to the mailing list!

More information about the Python-list mailing list