Unable To Execute Shell Script With Expect Commands in The JCS Instance VM
(Doc ID 2434617.1)
Last updated on NOVEMBER 08, 2019
Applies to:Java Cloud Service - Version N/A and later
Information in this document applies to any platform.
Unable to execute shell script with expect commands
Customer have SFTP shell scripts based on unix internal utility command exact. Due to missing util under /usr/bin/expect, our shell script is failing with missing directory or filename.
[user@hostname SFTP_Scripts]$ ./my_script.sh
bash: ./my_script.sh: /usr/bin/expect: bad interpreter: No such file or directory
The same type of command worked on our dev/test environment, customer verified on Prod box /usr/bin folder, there are no expect util present.
Can you install missing util files on JCS Prod instance?
/usr/bin/expect: bad interpreter: No such file or directory
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document