Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python
sending to an xterm
 

Index | Next | Previous | View Flat


ktenney at gmail

Aug 8, 2008, 1:25 PM


Views: 547
Permalink
sending to an xterm

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

--
http://mail.python.org/mailman/listinfo/python-list

Subject User Time
sending to an xterm ktenney at gmail Aug 8, 2008, 1:25 PM
    Re: sending to an xterm emile at fenx Aug 8, 2008, 1:55 PM
    Re: sending to an xterm code at pizzashack Aug 8, 2008, 1:58 PM
        Re: sending to an xterm ktenney at gmail Aug 8, 2008, 2:13 PM
            Re: sending to an xterm healey.rich at gmail Aug 8, 2008, 10:17 PM
        Re: sending to an xterm ktenney at gmail Aug 8, 2008, 2:21 PM
    RE: sending to an xterm Edwin.Madari at VerizonWireless Aug 8, 2008, 2:47 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.