issue while doing pexpect ssh
harirammanohar159 at gmail.com
harirammanohar159 at gmail.com
Thu Sep 10 01:18:19 EDT 2015
On Tuesday, 8 September 2015 17:07:24 UTC+5:30, hariramm... at gmail.com wrote:
> Some where i am missing simple logic.... :)
>
> =====
> child = pexpect.spawn('ssh hari at hostname')
> child.logfile = sys.stdout
> child.expect('hari\'s Password: ')
> =====
>
> getting error as follows:
> ============
> child.expect('hari\'s Password: ')
> TypeError: must be str, not bytes
> ===========
>
> Thanks...
Hi,
can you check it and let me know the way...
Thanks...
More information about the Python-list
mailing list