working on Qt creator, installed expect & tcl, error while executing *.sh file
shell scirpt which i executed
#! /uer/bin/expect set timerout 2 set user [lindex $argu 0] set password [lindex $argu 1] spawn su $user expect "password:" send "$password\r"; interact error showing /usr/bin/expect: error while loading shared libraries: libexpect5.45.so: cannot open shared object file: No such file or directory have i done any error while installing expect & tcl or an error with the shell script pls do help |
The shell script you posted has numerous typos, did you copy-paste it or just type it in your post and fail to error-check it? Please post code in [code][/code] tags and make sure you copy-paste it from the script itself to avoid transcription errors, they make it impossible for us to debug the real cause of the problem.
You also haven't told us what distribution you're running or how you installed expect and tcl. We can't tell you if you made an error in the installation if you haven't told us how you did the installation. |
error while installing expect & tcl
Thank you,
The path where i installed tcl was not correct, i choose /usr has a path while installing tcl and the once again installed expect. with that my problem got solved thank you. Sorry for late reply. |
All times are GMT -5. The time now is 12:42 PM. |