My Oracle Support Banner

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.

Goal

Unable to execute shell script with expect commands

ISSUE:

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?


ERROR
-----------------------
/usr/bin/expect: bad interpreter: No such file or directory
 

Solution

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
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.