sending to an xterm

Kent Tenney ktenney at gmail.com
Fri Aug 8 16:25:19 EDT 2008


Howdy,

I want to open an xterm, send it a command and have it execute it.

I thought pexpect would do this, but I've been unsuccessful.

term = pexpect.spawn('xterm')

starts an xterm, but

term.sendline('ls') 

doesn't seem to do anything.

Suggestions?

Thanks,
Kent




More information about the Python-list mailing list