• 2,481 Views

EXPECT package is not working

Jump to solution

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

Labels (1)
0 Kudos
1 Solution

Accepted Solutions
kpietras
Flight Engineer Flight Engineer
Flight Engineer
  • 2,390 Views

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

View solution in original post

0 Kudos
3 Replies
kpietras
Flight Engineer Flight Engineer
Flight Engineer
  • 2,468 Views

@ViswaSrimaan 

Are you using PowerPC architecture?
Would you be able to execute uname -a and send it back here?

0 Kudos
  • 2,393 Views

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

0 Kudos
kpietras
Flight Engineer Flight Engineer
Flight Engineer
  • 2,391 Views

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

0 Kudos
Join the discussion
You must log in to join this conversation.