subprocess & isql

peterff66 peterff66 at
Fri Jul 15 04:47:55 CEST 2011

Hello Python community, 

I am working on a project that retrieves data from remote Sybase. I have to use isql and subprocess to do this. Is the following correct?

1. call subprocess.popn to run isql, connect to Sybase
2. run sql ("select ...from ...")
3. write retrieved data to subprocess.pipe
4. retrieve data from pipe

Did anybody do similar work before? Any ideas (or code piece) to share?

Thanks so much. 

More information about the Python-list mailing list