THE sh file cannot be modified in windows.Because most people use windows as the operating system and the visual interface of windows is more user-friendly, when modifying a linux sh file, edit it with editplus to facilitate pulling it to the window, after uploading it back to linux, the sh cannot run. The error message is: command not found.
The cause is the
The ORACLE tutorial is the SH file of the logical backup of the Oracle database.Full Backup SH file: exp_comp.shRq = 'date + "% m % d "'Su-oracle-c "exp system/manager full = y inctype = complete file =/oracle/export/db_comp $ rq. dmp"Cumulative backup SH file: exp_cumu.shRq = 'date + "% m % d "'Su-oracle-c "exp
How to obtain the shell script location where sh or source executes 1) supports execution from other directories, such as source xxx/yyy/test. sh 1) supports sh and source execution. 2) supports spaces in the path. 3) supports zsh and bash #! /Bin/sh if ["$0" = "bash"]; then cd "$ (dirname" $ BASH_SOURCE ")" CUR_FILE =
There are two cases of executing. sh files under Linux:First, direct./plus file name. SH, if running hello.sh for./hello.sh "hello.sh must have x permission"Second, direct sh plus filename. sh, such as Run hello.sh for SH hello.sh "hello.sh can have no x permission"To illust
This directory is a sub-file directory introduced by the Language/tool. This section describes the content related to Dev-CPP/mingw32 and GCC.
For details, see the link: column of dipper.
Http://blog.csdn.net/VisionCat/category/96409.aspx
Some problems occurred when I used Lua with Dev CPP today. I would like to record it for future search.
Open Dev CPP to cr
Last time I talked about the nmake command of ms to compile multiple cpp files. This time, I want to step by step without the help of makefile.
Pay attention to the following points:
1. # The mechanism of the include command is to copy the content in the. h file to the. cpp file, so you only need to compile the cpp file. The H file is just a foil. Note that the
An error occurs when running a C ++ program in vs2010:
As soon as I see this, my head is big. The key is F:/DD/vctools/vc7libs/ship/atlmfc/src/mfc/dlgdata. cpp. This path does not exist in my computer. But it is estimated that it is in the installation directory.
I think it is recently updated to vs2010_sp1, but the release package:
En_visual_c ++ _ 2010_sp1_redistributable_package_x86_651767
Not Installed. Try again after installation. An error occu
The ORACLE tutorial is the SH file of the logical backup of the Oracle database.
Full backup SH file: exp_comp.sh
Rq = 'date + "% m % d "'
Su-oracle-c "exp system/manager full = y inctype = complete file =/oracle/export/db_comp $ rq. dmp"
Cumulative backup SH file: exp_cumu.sh
Rq = 'date + "% m % d "'
Su-oracle-c "exp system/manager full = y inctype = cumulative
If a problem occurs when running the root102.sh script on node 2, it can only be re-run, but the three processes shutdownocssd. bin, crsd. bin, and evmd. bin are prompted.
If a problem occurs when running the root102.sh script on node 2, it can only be re-run, but the three processes shut down ocssd. bin, crsd. bin, and evmd. bin are prompted.
A problem occurs when running the root102.
VBoxCreateUSBNode. sh not found solves the problem of installing VirtualBox. If the screen displays the following error: 1/usr/share/virtualbox/VBoxCreateUSBNode. sh not found: 1. are you sure you have installed the vbox extension package, and you are a member of the user group vboxusers: sudo usermod-a-G vboxusers username 2. the error may be because your/usr is an independent partition: cp/usr/share/virtu
There are multiple types of Shell in Linux, the most common of which are Bourne shell (SH), c shell (CSH), and Korn shell (Ksh ). Each of the three shells has its own advantages and disadvantages. The Bourne shell is the original shell used by UNIX and can be used on every UNIX. Bourne shell is excellent in shell programming, but it is inferior to several other shells in dealing with user interactions. The default shell in Linux is the Bourne again sh
First, make sure that the file has executable permissions.# SH> chmod A + x filename
Then modify the file format# SH> VI filename
Use the following command to view the file format: Set FF or: Set fileformat
The following information is displayed:Fileformat = DoS or fileformat = Unix
Use the following command to modify the file format: Set FF = Unix or: Set fileformat = Unix
: WQ (Disk logout)
Finally,
Linux executes the. sh file, prompting no such file or directory issuesUnder the window platform, write the shell script file, migrate to the Linux platform, assign executable permissions, execute the SH file,However, no such file or directory is indicated. LS down, there is indeed the file, how can things be,Is it a file format compatibility issue? Open the Sh f
The Oracle tutorial being looked at is the sh file of the Oracle database logical backup.
SH file for full backup: exp_comp.sh
rq= ' date + '%m%d '
SU-ORACLE-C "Exp System/manager full=y inctype=complete file=/oracle/export/db_comp$rq.dmp"
SH file for cumulative backup: exp_cumu.sh
rq= ' date + '%m%d '
SU-ORACLE-C "Exp System/manager full=y inctype=cumulativ
1. sh File contents
The file name in this article is example.sh, which reads as follows:
#!/bin/bash
function Init ()
{
If [-F "Example.sql"]
Then
echo "Example.sql is exits and is deleting it,then recreate it"
Rm-fexample.sql
Else
echo "Example.sql no exits and is creating it"
Fi
echo "usezxdbp_166" >>example.sql
echo "Go" >>example.sql
}
function CreateTable ()
{
cat>>example.sql
CREATE TABLE Tb_employeeinfo
(
Employeeno varchar
Tags:. SH floating-point separators should calculate bar integer ACE SpecialUse Shell to write a simple calculator, you can implement add, subtract, multiply, divide operation, if the script name is 1.sh, execute example:./1.sh 1 + 2#!/bin/bashif[$#-ne3]thenecho "The number of parameters should be 3, for example: $01 +2 "echo" when using multiplication, you need
Original article: http://blog.chinaunix.net/uid-20539088-id-115759.html
On mini2440-/bin/sh: Command: Not found SolutionI transplanted the Linux kernel and the file system according to the mini-2440 porting manual. What's different is that the cross compiler I use is the latest 4.4.1, instead of the Cross Compiler provided by tianyinao technology, when I have transplanted the yaffs file system and want to write a helloworld program to test it on the D
Shell programming is annotated with "#", but "#! /Bin/sh ", but not. "#! /Bin/sh "is the shell declaration, indicating that you are using the shell type and its path. If no declaration is made, the script will be executed in the default shell. The default shell is defined by the user's system as the shell for executing the shell script. if the script is written to run in the Korn shell ksh and the C shell C
Addnode. sh failed, log file error PRKC-1025 java. lang. OutOfMemoryError: Java heap space,Environment:
Linux 5.5 + RAC 11203
Problem description:
The command to add a cluster member is as follows:
$ GRID_HOME/oui/bin/addNode. sh-silent "CLUSTER_NEW_NODES = {X3850AR}" "CLUSTER_NEW_PRIVATE_NODE_NAMES = {X3850AR-priv}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES = {X3850AR-vip }"
The following error is reported:
Instanti
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.