The script written locally today cannot be run after being uploaded to Linux. The error "bin/sh ^ m: Bad Interpreter: no such file or directory" is displayed, later, Baidu may have a file problem:
The reason is that the. Sh script is written in a notepad file in windows. Encoding formats of different systems. The encoding format of the transfer object: 1. Ensure that you have read and write permissions on the object. [email protected]: ~ /RMAN/bin> chmod A + X test. Sh 2. Modify the file format (1) Use the VI tool [email protected]: ~ /RMAN/bin> VI test. sh (2) use the following command to view the file format: Set FF or: Set fileformat. You can see the following information: fileformat = DoS or fileformat = Unix (3) use the following command to modify the file format: set FF = Unix or: Set fileformat = Unix: WQ (save disk exit) The above is obtained from Baidu, and later found that this problem is true, view the editplus editor I used in the editor, change the PC to Unix in parameter settings, and upload the file again.
Bin/sh ^ m: Bad Interpreter: no such file or directory solution