capturing stdout from xwindows program

Roch'e Compaan roche at ybm.co.za
Tue Dec 19 04:35:25 EST 2000


How does one capture the result of a program that needs to attach to a
running X Server?

If I execute a python script from a terminal while working in X it works
fine, but in this case the system will execute the script and I need to tell
it to connect to a X Server.

I tried popen2 but it returns 'program: cannot connect to X server'

Roché





More information about the Python-list mailing list