I have installed expect package but when I type expect it is not working
rpm -qa | grep expect
expect-5.45.4-5.el8.ppc64le
expect
-bash: expect: command not found
It is throwing this error
Sure. I think that if you have installed that package properly then something wrong with your PATH variable.
- check with 'which expect' - in my case it is -/usr/bin/expect
-execute 'echo $PATH' and compare if it contains /usr/bin folder
IN my case it is - /bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/ and it contains
- you can also log in/log out to reload your PATH variable if you have something defined in .bashrc
Are you using PowerPC architecture?
Would you be able to execute uname -a and send it back here?
Sorry I couldn't share the machine details, however Yes I am using powerPC architecture.
Linux "Node_Name" 4.18.0-147.el8.ppc64le #1 SMP Thu Sep 26 15:44:34 UTC 2019 ppc64le ppc64le ppc64le GNU/Linux
Sure. I think that if you have installed that package properly then something wrong with your PATH variable.
- check with 'which expect' - in my case it is -/usr/bin/expect
-execute 'echo $PATH' and compare if it contains /usr/bin folder
IN my case it is - /bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/ and it contains
- you can also log in/log out to reload your PATH variable if you have something defined in .bashrc
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.