open remote terminal
Fabian Braennstroem
f.braennstroem at gmx.de
Tue Oct 23 15:48:59 EDT 2007
Hi Rafael,
Rafael Sachetto wrote:
> Take a look at this documentation:
>
> http://pexpect.sourceforge.net/pxssh.html
thanks for the link, but it actually looks to me almost like my little
example... I somehow don't get it!? Any more hints?
Fabian
>
>> >>>
>> >> pexpect would be the usual solution, I believe, if you could get it to
>> >> interact correctly with your virtual terminal.
>> >>
>> >> http://pexpect.sourceforge.net/
>>
>> I actually gave it a first very simple try:
>>
>> import pexpect
>> child=pexpect.spawn('xterm')
>> child.sendline('ls')
>>
>> Unfortunately nothing happens expect the start of xterm!? Does anyone
>> have an idea, what I am doing wrong?
>> Fabian
>>
>> --
>> http://mail.python.org/mailman/listinfo/python-list
>>
>
>
>
More information about the Python-list
mailing list