Put 1.cpp and 2.cpp in the same directory, for example:The 1.cpp code is as follows#include int main (){void Changefunction (int* input, int n);void Printdata (int* input, int n);int a[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};Printdata (A, 10);Changefunction (A, 10);Printdata (A, 10);return 0;}The 2.cpp code is as follows#i
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
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.
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
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
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
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
CPP -- positive code, reverse code, and complement ~ With the discussion of integer overflow, cpp -- anti-code
The long dispute (http://www.cnblogs.com/dotnetcrazy/p/8059210.html) was mentioned before, so we don't need long to give an example here. Use int.
Can take a look at this article (http://www.cnblogs.com/dotnetcrazy/p/6743530.html), better understanding of this article (this article does not contin
CPP-understanding memory storage with the help of artifacts VS, cpp --
I also want to know this before. The first is not to learn the underlying layer, but to understand the concept of online search. The second is the end of the story. The example is also complicated, it may be difficult for the non-C direction, so I have never understood it.
Today, I accidentally found out that I had to go through the me
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
T4870 flood (sliker. cpp/c/pas) 1000 MS 64 MB, t4870sliker. cppDescription
It rained for a few days, but it still did not stop. Tuhao CCY just returned from the field after earning 1e yuan, knowing that soon except his villa, other places will be flooded.
The city where CCY is located can be represented by a map of N * M (N, M
CCY can be moved to adjacent locations every minute, and the flood will flood the adjacent non-existing land (from the alread
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.