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
Modify catalina in windows. sh upload to linux run error This file is needed to run this program solve 1. Found the problem due to tomcat memory overflow, modified catalina in windows. sh, then upload it to the linux server through ssh, and run
How to execute. sh files under LinuxThe. sh file is a text file, and if you want to do this, you need to use chmod a+x xxx.sh to give executable permissions.Is it a bash script?You can use Touch test.sh #创建test. sh fileVI test.sh #编辑test. sh
First, make sure that the file type is executable.
There are two ways to set the file as an executable file.
1) directly select "executable" in the file property tag, -- if B uses a graphical interface, this method is the simplest and most direct.
Sh File Syntax in CentOSIntroduction:Start with 1The program must start with the following line (must begin with the first line of the file ):#! /Bin/shSymbol #! The parameter used to tell the system that the program is used to execute the file. In
The. Sh file is a shell script file.
Introduction:
Start with 1The program must start with the following line (must begin with the first line of the file ):#! /Bin/shSymbol #! The parameter used to tell the system that the program is used to execute
When the linux system is started, we can see that many service programs are started one by one (that is, the lines with blue [OK ), these programs run in the background play a very important role for us to use computers. the programs run in this way
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
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.