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 exception:/bin/
. /Xx. sh: execute xx in the current directory. sh file xx. sh, run the command named xx. sh file if the latter before running. (the current directory) is added to the environment variable and has the executable permission. Otherwise, if the environment variable is not added, the system prompts that the file cannot be
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 that is edited in the Windows system may have invisible characters, so the above exception information is reported in
solution will not be guaranteed.
Solution 2: wired
The cable solution can only deploy single-mode optical fiber cables at a distance of 12 kilometers, which is more time-consuming and costly. You can say you don't have to think about it.
Solution 3: Internet + VPN
The Internet can be said to be a public wide area network, and many telecom operators have established a four-way and eight-way long-distance network, which makes it possible for our compan
SH file run:1. Modify to execute permissions:chmod u+x hello.sh2. Operation./hello.sh3, do not use executable permissions to modify, with SH direct operationSh./hello.shDesktop Environment Double-click Run sh file:Mac:1, modify the suffix sh to become command:hello.sh->hello.command2. Modify executable permissions: chm
When rac _ executes grid self-check, a prompt is displayed for executing the runfixup. sh script, gridrunfixup. sh.
Original Works are from the blog of "Deep Blue blog". You are welcome to reprint them. Please note the following source when reprinting them. Otherwise, you will be held legally liable for copyright.
Deep Blue blog: http://blog.csdn.net/huangyanlong/article/details/40779253
Environment: CentOS
Yesterday, I wrote a shell script on the WordPad in windows. When I uploaded the script to Linux using winscp, I found that the script could not run.-Bash :. /job. SH:/bin/sh ^ m: Bad Interpreter: the file or directory does not exist. The reason is as follows:
1. to convert a DOS text file to a UNIX text file, perform the following operations on Linux: # unix2dos job.
Localhost error causes Rac root. sh to fail to be executed, racroot. shEnvironment: AIX 7.1 Oracle Rac 11.2.0.3root @ kk01:/oraapp/grid/gridhome>./root. shPerforming root user operation for Oracle 11gThe following environment variables are set as: ORACLE_OWNER = grid ORACLE_HOME =/oraapp/grid/gridhomeEnter the full pathname of the local bin directory: [/usr/local/bin]: Copying dbhome to/usr/local/bin... copying oraenv to/usr/local/bin... copying corae
Executes. sh script in Linux, exception/bin/sh^m:bad interpreter:no such file or directory. This is caused by different system encoding formats: the. sh file that is edited in the Windows system may have invisible characters, so the above exception information is reported in the Linux system execution.If our script is written in a Windows environment, we need to
The following error was found in executing the script today:/bin/sh^m:bad Interpreter: No file or directoryError Analysis:Because the operating system is windows, I edit the script under Windows, so there may be non-visible characters.The script file is in DOS format, that is, the line end of each line is identified by \n\r, and its ASCII code is 0x0d, 0x0A.There are many ways to see if the file is in DOS or UNIX format, or in MAC format.Workaround:Vi
This is an alias set designed for Linux/MACOs users,ASDF. Sh(Https://github.com/shenjia/asdf.sh) designed for QWERTY keyboard users,Aoeu. ShHttps://github.com/shenjia/aoeu.sh is designed for Dvorak keyboard users.
As developers, we need to repeat a lot of repetitive commands on the terminal every day. Some large repeated commands (such as deployment, installation, and backup) can be written into shell scripts to avoid repeated typing, but many frequen
Redhat 6.4 install ORACLE11R2 and run root. sh to report the following error: "libcap. so.1: cannot open shared object file", oracle11r2root. sh
1. system environment:
Redhat 6.4 Enterprise Edition
Oracle11.2.0.2 RAC + ASM
2. error message:/oracle/app/11.2.0/grid/bin/clscfg. bin: error while loading shared libraries: libcap. so.1: cannot open shared object file: No such file or directory
3. Possible problem
Error executing SH script:/bin/sh^m:bad interpreter:no such file or directory, which is caused by different coding under Windows, the repair method under Linux is as follows, recorded.
[nobody@twin14441 cronjob]$./stop_tips_new.sh-bash:./stop_tips_new.sh:/bin/sh^m:bad interpreter:no such file or directory
Solution: VI The file is entered in command mode: Set Ff
This is because Tcl-devel TK-devel is not installed by default in general systems. At least cent-OS 5.5 and Fedora 11 are like this. install these two packages.
# Yum install TCL-devel TK-devel
NOTE: For the convenience of the presence of multiple versions of TCL on Ubuntu 10.04.2, the installation location of TCL is not the same, such as tcl8.5
Header file directory:/usr/include/tcl8.5/
Tclconfig. Sh Directory:/usr/lib/tcl8.5/
Library File:/us
ifconfig.
Create an iptables file in the/etc/network/if-up.d/directory with the following content:#! /Bin/sh
Iptables-restore Add the execution permission to the script:Chmod + x/etc/NET/if-up.d/iptables
Modify/etc/sysctl. the conf content is as follows: There are two items not listed above. You can simply add them directly. Other projects mainly remove comments. In fact, you can directly copy the following content to the configuration file:Net. ipv4
Rd and RT (mpls vpn bgp)
Rd (route-distinguisher) is used to identify different VPN instances on the PE device. Its main function is to achieve address multiplexing between VPN instances. It and the IP address constitute a 12byte vpnv4 address space, rd and the route are carried together in the bgp update message and published to the peer end. On the one hand, we
This article compares the IPSec VPN and ssl vpn technologies in detail, so that users from all walks of life can better understand the VPN technology and select the appropriate VPN product.
Another VPN implementation technology different from the traditional
WIN8 Cisco VPN 442 Error solution/Error Code 442 Cisco VPN Clinet with Windows 8 when you start using win8, because of work needs to use Cisco VPN Client, however, in win8, the Cisco VPN Client reports a 442 Error and cannot be used. The following Error message is displayed: Error Code 442 while connect to
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.