pexpect module
Gianluca Trombetta
gianluca.trombetta at tin.it
Fri May 14 13:50:54 EDT 2004
Someone know pexpect module?
I've a problem working with it...
I need to run some commands on remote hosts, like ls, df -k etc..All right.
Although, when i launch a command that have a "more" inside, i don't know
what i must expect!
An example:
if i want to run an "ls -l | more" on a remote host, it don't return me a
prompt, but a "-------------More-------------"...thus i don't know how much
this.
I've tried with:
child.expect('.*')
it works, but do not return any value.
Any idea?
I hope to have clearly explained my problem with my bad english...:-)
Thank you in advance
Regards
Gianluca Trombetta
More information about the Python-list
mailing list