Jul-19-2020, 02:22 AM
Dear All,
Good Day. Please help / guide on how to get pexpect working, the following are the errors I am encountering. Appreciate if there is any reference guide provided on using pexpect. I am trying to write python code that is expected to run unix commands on several unix servers without having to manually enter userid/password on each server by using ssh (ssh -l user servername ; command etc). Thanks in advance.
[e025711@IBBFDPLSPW010 python]$ python3
Python 3.6.8 (default, Sep 26 2019, 11:57:09)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pexpect
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pexpect'
>>>
Good Day. Please help / guide on how to get pexpect working, the following are the errors I am encountering. Appreciate if there is any reference guide provided on using pexpect. I am trying to write python code that is expected to run unix commands on several unix servers without having to manually enter userid/password on each server by using ssh (ssh -l user servername ; command etc). Thanks in advance.
[e025711@IBBFDPLSPW010 python]$ python3
Python 3.6.8 (default, Sep 26 2019, 11:57:09)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pexpect
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pexpect'
>>>