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
--
Kent Tenney wrote:
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
--
On Fri, Aug 08, 2008 at 08:25:19PM +, Kent Tenney wrote:
Howdy,
I want to open an xterm, send it a command and have it execute it.
You can't do that. xterm doesn't execute shell commands passed on
stdin... It can, however, execute one passed on the command line.
Instead of just running
Derek Martin code at pizzashack.org writes:
On Fri, Aug 08, 2008 at 08:25:19PM +, Kent Tenney wrote:
Howdy,
I want to open an xterm, send it a command and have it execute it.
You can't do that. xterm doesn't execute shell commands passed on
stdin... It can, however, execute
Derek Martin code at pizzashack.org writes:
On Fri, Aug 08, 2008 at 08:25:19PM +, Kent Tenney wrote:
Howdy,
I want to open an xterm, send it a command and have it execute it.
You can't do that. xterm doesn't execute shell commands passed on
stdin... It can, however, execute
-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
On Behalf Of Kent Tenney
Sent: Friday, August 08, 2008 4:25 PM
To: python-list@python.org
Subject: 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
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Kent Tenney wrote:
Derek Martin code at pizzashack.org writes:
On Fri, Aug 08, 2008 at 08:25:19PM +, Kent Tenney wrote:
Howdy,
I want to open an xterm, send it a command and have it execute it.
You can't do that. xterm doesn't execute