Linux executes. sh file, prompting no such file or directory problem Resolution12-06-28 16:59love__coderLinux executes the. sh file, prompting no such file or directory issuesProblem descriptionWorkaroundAnalyze the cause, maybe because I have a
Reprint Address: http://www.cnblogs.com/pipelone/archive/2009/04/17/1437879.htmlExecutes. sh script in Linux, exception/bin/sh^m:bad interpreter:no such file or directory.Analysis: This is caused by different system encoding formats: the. sh file
Sh script exception:/bin/sh ^ M: badinterpreter: Nosuchfileordirectory problem is executed in Linux. sh script, exception/bin/sh ^ M: badinterpreter: Nosuchfileordirectory analysis: This is caused by different system encoding formats ,...
Sh script
LinuxSh script exception: Bad Interpreter: no such file or directory
From: http://huangchaobiao111.blog.chinajavaworld.com/entry/4484/0/
Run the. Sh script in Linux./bin/sh ^ m: Bad Interpreter: no such file or directory is abnormal.
Analysis:
Executes the. SH script in Linux, exception/bin/sh^m:bad interpreter:no such file or directory.Analysis: This is the result of different system encoding formats: the. sh file edited in the Windows system may have invisible characters, so it will
Run the. Sh script in Linux./bin/sh ^ m: Bad Interpreter: no such file or directory is abnormal.Analysis: This is caused by different system encoding formats: The. Sh file edited in Windows may have invisible characters, so the preceding exception
First of all, let's look at the problem description, the following figure is my run-time error screenshot:
Solving method
Analyze the reason, maybe because I have a problem with my platform migration, we have permission to convert.
1 conversion
Write a shell script from Windows Sublime, move to Linux, find an error,/bin/sh^m:bad interpreter:no such file or directory cause: This is caused by different system encoding formats: in WI The. sh file that is edited in the ndows system may have
/bin/sh^m:bad interpreter:no Such file or directoryExecutes. sh script in Linux, exception/bin/sh^m:bad interpreter:no such file or directory.Analysis: This is caused by different system encoding formats: the. sh file that is edited in the Windows
Http://hi.baidu.com/netwrom/blog/item/8885f31ef0d09ae7e1fe0b1c.html
On many UNIX-like platforms, there is an iconv tool that can be used to convert character encoding. For common text files, the file command can be used to detect the
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.