Title, see a project crontab executed the. sh file and then went to the. Sh to find the appropriate PHP file it feels a little superfluous.
There's no such thing as an impact on performance.
Reply content:
Title, see a project crontab executed the. sh file and then went to the. Sh to find the appropriate PHP file
Article Title: tiptop automatic backup script backup. sh. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
# Create a crontab Scheduler
Crontab-e
0 *** sh/u3/backup/tool/backup. sh # automatic backup at every day
0 6 ***
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 information is reported when executed in Linux.
Solution:
1) Conversion in Windows: some editors such as ultraedit
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.
2) run the command chmod + X file. Sh. Add executable attributes to file attributes.
Then, execute the shell script file.
1) double-click File. Sh to run the
Zookeeper command line
OriginalHttp://blog.csdn.net/ganglia/article/details/11606807
The Zookeeper client has two versions: C and Java.
The Zookeeper command is in the/usr/lib/zookeeper/bin folder.
Clients running Java use Bash zkcli. Sh-Server IP: Port and C language version./cli_mt IP: port. The following describes the Java version, which is similar to the C language version.
View node Information
Bash zkserver.
Run root. Sh in RAC of Oracle 11.2.0.1 and an error is reported as follows:
[Root @ Rac1 Oracle] #/u01/APP/11.2.0/GRID/root. Sh
Running Oracle 11g root. Sh script...
The following environment variables are Setas:
Oracle_owner = Oracle
ORACLE_HOME =/u01/APP/11.2.0/Grid
Enter the full pathname of the local bindirectory: [/usr/local/bin]:
The file "dbhome" alread
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 report the above exception information in the Linux system.Resolve: 1 convert under Windows:Use tools such as UltraEdit
Tags: ges resolve error Linu All rights log str virtual TargeToday accidentally executed the Chmod-r 777/var on this machine's virtual machineCauses all permissions in the/var directory to be all 777Where the/VAR/EMPTY/SSHD directory permission must be 744, but was changed to 777, causing the SH remote connection failedRemote SH connection Condition 1. Turn off the firewall or open
that is/usr/local/lib/, and then make expect said can only install expect related components, there are other??? , no matter what, I'll install it directly after make.Then we have the main function of expect.The code is as follows:#!/usr/bin/expect-F -1ssh [email protected]ServerIP " *assword:* " // Wait for password prompt display "$password \ r" // login Interact //doneAnd then it hurts that the script is not going to perform as normal
something
--------------------------------------------------------------------------------
Case two: InetpanelMany of the daemon will be accompanied by a management Shell Script,Like bind, attach the Ndc,apache and attach the Apachectl. These management programs are written in shell script,A shell script that manages inetd is shown below.#!/bin/sh
Case is inStart | Begin | Commence)/usr/sbin/inetd;;Stop | End | DestroyKillall inetd;;Restart | Agai
Tags: ted linux command com work HTTPS error DOS reason refSometimes we execute an SH file under Linux and will error "SYNTAX error:unexpected END of File", which is mainly caused by the change of working system environment.If the original script is under Windows, write using the sublime editor. Transfer shell scripts to Linux: Using the command bash-x script check syntax always comes with an error syntax error:unexpected end of file. cause : When a
The script written locally today cannot be run after being uploaded to Linux. The error "bin/sh ^ m: Bad Interpreter: no such file or directory" is displayed, later, Baidu may have a file problem:The reason is that the. Sh script is written in a notepad file in windows. Encoding formats of different systems. The encoding format of the transfer object: 1. Ensure that you have read and write permissions on th
Who has run zf. sh in the bin folder under zend? Who has run zf. sh in the bin folder under zend? Who knows how to solve the error when I run it !? [Root @ f11bin] # zf. sh in the bin folder under zf. shcreateprojectquickstartCreatingprojectatvarwwwhtmlZendFramework-1.8.1 zend who has run it?
Who has run zf. sh in the
Who has run zf. sh in the bin folder under zend? Who has run zf. sh in the bin folder under zend? Who knows how to solve the error when I run it !? [[Email #160; protected] bin] # zf. shcreateprojectquickstartCreatingprojectatvarwwwhtmlZendF: who has run zf. sh in the bin folder of zend?
Who has run zf. sh in the bin
Run the. sh file in Linux and prompt Nosuchfileordirectory. write the shell script file on the Windows platform, migrate the file to the linux platform, Grant executable permissions, and execute the sh file, but prompt Nosuchfileordirectory. Ls. This article does exist... linux execution. sh file, prompting No such file or directory problems in the window platfor
Crontab Linux User Time Schedule tableCrontab-l Viewing the time schedule tableCRONTAB-E editing the time schedule tableCrontab-r Delete a time schedule tableThe General Crontab service is automatically enabled.Service Crond Status command to see if crontab is enabledExample: Executing/opt/start.sh at a specified time, executing/opt/stop.sh at a specified timeCrontab-e into VI editing interface*/2 * * * * sh/opt/start.sh #每隔2分钟执行一次start.
Get ready to connect to Linux Server tools, recommend Xshell and Xftp.
One-click installation package Download: Click here to download
First log in to the Cloud server tutorial "Using Xshell Connection Aliyun Server" to the main directory (/home) look at the following:
Command one:
cd /home
Command two:
cd /home mkdir tmp cd tmp
Configure the Web environment (i)
Click on the Xshell icon XFTP4 can be directly linked to the XFTP4 software page, will download a good
Execute a Script Discovery report syntax error, but running on other machines is no problem the only difference is that a CentOS machine error is UbuntuSearch the Internet for a momentBecause the default SH is connected to dash, and because the dash is not compatible with bash, it goes wrong. You can change SH to bash file name when you execute it. Sh to executeS
There are some differences between csh, tcsh, bash, sh, and other shell, such as csh, tcsh, bash, and sh.
Section C: Differences from other Unix shellsC: Differences with other UNIX shells scripts C1) How does bash differ from sh, the Bourne shell? C1) bash, sh, and Bourne shell differences This is a non-comprehensive
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.