Bin/sh ^ m: Bad Interpreter: no such file or directory solution

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.