Needs help from a guru

Erik Max Francis max at alcyone.com
Sun Dec 1 23:10:51 EST 2002


"Raaijmakers, Vincent (IndSys, GE Interlogix)" wrote:

> I'm using Python in a Linux environment. In that environment I have to
> use some special shell scripts. These shell scripts generates output
> in the form of data to the console/terminal, for example a "query.sh"
> script returns... a query of a database in plain text.
	...
> To start these scripts, the os.execvp seems a good solution, however
> it returns nothing.
> 
> What is the best command to use? Can someone please help me, it will
> save me a lot of time.

This is what os.popen is for.  The popen2 module contains variants that
let you choose between unified or separate stdout and stderr, etc.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ If you think you're free, there's no escape possible.
\__/ Baba Ram Dass
    7 Sisters Productions / http://www.7sisters.com/
 Web design for the future.



More information about the Python-list mailing list