-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Kent Tenney wrote:
> Derek Martin 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 exe
pect([pexpect.TIMEOUT, pexpect.EOF, '\$ '])
2
>>> c.before
'[EMAIL PROTECTED]:/c/Edwin/Projects/expect\r\n'
>>> c.after
'$ '
>>>
>>> exit()
[EMAIL PROTECTED]:/c/Edwin/Projects/expect
$
-----------
good luck
Edwin
-Original Message-
Derek Martin 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, execut
Derek Martin 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, execut
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 runni
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
--
htt
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/ma