I used phpxxx. php to run this php script. in linux, I want to use. xxx. sh to replace it. I wonder if it is feasible? Php xxx. php is used to run this php script.
In linuxI want to use./xxx. sh instead of above
Is it feasible?
Reply content:
Php xxx. php is used to run this php script.
In linuxI want to use./xxx. sh instead of above
Is it feasible?
Feasible
Redhat hit Sh-copy-id command error:-bash:ssh-copy-id:command not foundSSH access to multiple Linux servers without a password,Which enters a Linus, copies it to host, appearsWill not be the user's permissions issue, under Root execution:[Email protected] hadoop]# Ssh-copy-id/usr/bin/ssh-copy-id:error:no identities foundWhy does it appear like this? (At present, I have not resolved, if you know the reason for hope to tell you!) )After a long day, I go
Iredmail installation script analysis (1) --- iRedmail. sh, iredmail installation and configuration
Iredmail is a set of installation scripts that integrate the mail system with postfix as the core, which can be used to quickly deploy the mail server. In order to keep yourself from forgetting the shell syntax, you have nothing to worry about and learn his code.
I downloaded his latest version from the official website. After decompression, the str
I am a beginner in Linux,ArticleIf you have any questions, please correct them. Thank you.
I did lfs7.1, but I heard that lfs7.0 will encounter the same error.
Many overseas users may encounter such an error when searching on Google. Some people say that the symbolic link from the/bin directory to the/tools/bin directory is incorrect, so it cannot be solved after all reconstruction, although I cannot solve this problem, we recommend that you try it out when encountering such a mistake.
One, the sh script is as follows:#!/bin/shlocation= "/home/sharedir/" Find $location-mtime +30-type f |xargs rm-fSave named Del.shThe other two ways to find related files are as follows:1) Find /home/sharedir/ -mtime +30-type f-name *.gz2) find/home/sharedir/-mtime +30-type F |xargsSecond, the use of CRONTAB-E timed start del.sh script*/10 * * * */bin/sh/home//del.sh1) crontab-l Show your crontab file2) cro
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=cumulative file=/oracle/export/db_cumu$rq.dmp"
SH file for incremental backups: exp_incr.sh
rq= '
Oracle 11g RAC executes root. sh encountered CRS-0184/PRCR-1070 problems Oracle 11g RAC installation, at the first node execute root. sh encountered a CRS-0184/PRCR-1070, Google a lot of posts have not found a solution. Hey, let's calm down and look at the log !! The conclusion is a casual problem, as described below. 1. Fault
[Python] # installation environment [root @ linux1 ~] # More/etc/issue Enterprise
. PL execution failed
127.0.0.1 loopback localhost # loopback (lo0) Name/address: 1 loopback localhost # IPv6 loopback (lo0) Name/addressxxxxxxxxxxx localhost found that an IP address alias in the/etc/hosts file is localhost, there are both sides. Delete the row and run root again. sh
[Email protected]:/oraapp/GRID/gridhome>./root. shmongoming root user operation for Oracle 11g
The following environment variables are set as: oracle_owner = grid ORAC
Usage. sh,######################################## ################################## File Name: usage. sh# Author:# Mail:# Created Time: Friday, January 1, December 05, 2014 seconds######################################## ##################################! /Bin/bashIf [-z "$1"]; thenEcho-e "Usage: \ n \ t ${0 # */} Exit 1FiEcho-e "\ n To find the result in your desired result.txt \ n":> Zookeeper result.t
Oracle Rac root. sh error: Failed to create keys in the OLR, rc = 127 libcap. so.1, root. sholrEnvironment Description: Linux 6.3 Oracle Rac 11.2.0.4[Root @ web1 grid] #/u01/app/11.2.0/grid/root. shmongoming root user operation for Oracle 11gThe following environment variables are set as: ORACLE_OWNER = grid ORACLE_HOME =/u01/app/11.2.0/gridEnter the full pathname of the local bin directory: [/usr/local/bin]: Copying dbhome to/usr/local/bin... copying
The latest cocos2d-x version is 2.1.3, Which is okay when build_native.sh is called, but the following error occurs when build_native.sh clean.
Clean: chipmunk_static [armeabi]/bin/sh:-C: line 0: syntax error near unexpected token '('/bin/sh:-C: line 0: 'rm-RF (target_objs) 'Make: *** [clean-chipmunk_static-armeabi] Error 2
Check, it turned out that this is a bug of ndk, find the build/CORE/build-bina
Zookeeper
Oradebug. sh: Here is an OS Information Collection script, which is stored on the computer and cannot be found next time. It is recorded here.
#! /Usr/bin/ksh######################################## ############################### Osdebug. sh## VARIABLESLOG = "$ HOME/osdebug _ 'date-u + '% h _ % d _ % Y _ % H. out ''"INTERVAL = 60NETSTAT = "/bin/netstat-ais"IOSTAT = "/usr/bin/iostat-x"VMSTAT = "/u
There is no multiline comment in sh, only one # is added to each line. Can only be like this:
#--------------------------------------------
# This is a script that automatically plays IPA, based on Webfrogs's ipa-build writing:
# https://github.com/webfrogs/xcode_shell/blob/master/ipa-build
# features: Automatic packaging for Etao iOS app, 14 channels of output IPA package
# Features: automatic packaging, no
In linux, how does one regularly run the sh script? -- Linux general technology-Linux programming and kernel information. The following is a detailed description. My script is:
#! /Bin/bash
Cp-a/data/mysql/mnt/mysqldata
Tar-czvf/mnt/mysql _ $ (date + "% Y % m % d" 2.16.tar.gz/mnt/mysqldata
Rm-fr/mnt/mysqldata
Regularly let him start running at every Sunday, only once. I set it to * 3 ** 0/root/backup. sh
Often, daily or weekly is used to do some work. If you can use scripts to organize these jobs and execute them automatically, it will save a lot of effort.
Here are some common commands.
1. Tee outputs the execution result of a sh to the specified file
./Redeploysc. Sh | tee 'date + "% Y % m % d _ % H _ % m" '.txt
2. Read the value of a file and assign it to a variable.
Cur_build_dir = 'cat/mnt/11
1 OpeningThe program must start with the following line (must be in the first line of the file):#!/bin/shThe symbol #! is used to tell the system that the parameter behind it is the program used to execute the file. In this example we use/BIN/SH to execute the program.When writing a script, you must also make it executable if you want to execute the script.To make the scripting executable:Compile chmod +x filename so you can use./filename to run2 Note
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.