1. the server needs to clean the common shared directory of the FTP server 17:30 every week, first check the/var/ftp/pub/directory, and then save the detailed list and current time information of all subdirectories and files to/var/log/ Pubdir.log
The format of logical judgmentscase. Sh#!/bin/Bashread-P"Please input a number:"nm=$[$n%2] Case$minch 1) echo"It is a Jishu '" ;; 0) echo"It is a oushu." ;; *) echo"Not is a Jishu and Oushu."EsacEnter a string of
18-Channel Shell advanced Programming enterprise face testhttp://oldboy.blog.51cto.com/2561410/166516321 operation and maintenance personnel will have shell face questionshttp://oldboy.blog.51cto.com/2561410/1632876Enterprise Programming problems
The date command is the command that displays the DateTimeDateFriday, January 01, 2016 15:05:01 CSTThe option to modify the time is-s" 2016-01-01 12:56:10 "View CalendarAa.Annual CalendarCal-yTime to synchronize the serverYum Install Ntp-yNtpdate
Shell script implements Tomcat self-bootWhen a script is run on a machine, it can implement Tomcat self-boot,However, the script was added to the timed task, but the error was reported: Java.lang.UnsupportedClassVersionError.Cause of errorThis is
1#!/bin/Bash2 3send_thread_num= -#设置进程数. 4tmp_fifofile="/tmp/$$.fifo"# The current process ID number that the script runs as the file name5 Mkfifo "$tmp _fifofile"# Create a new random FIFO pipeline file6Exec6<>"$tmp _fifofile"# Definition File
Create a shell scriptmkdir ShellVim first.sh#!/bin//tmp/"my home is $HOME""This is first Script"Execute shell scripts, two methodsBash first.shMysql.sock Www_slow.log2015-12-31.wangshaojun.root.history-timestamp Pear
Functions: Naming rules are the same as variablesExecuting functions in the current shell processModularity of the program for easy maintenanceBasic function Syntax: function function name () { Command Area }
Log-in Shell:Login via terminalSu-usernameNon-logon Shell:Su USERNAME (switch user with Su, without parameters)Open Command Window under GUIShell scripts executed automatically (using at, crontab, Anacron, etc.)Bash configuration file:Global
Modify the Tomcat Server.xml to unpackwars= "false", and then Maven generates a. War with two functions:1 No manual decompression required. War (Tomcat is not automatically decompressed if there is a folder with the same name and a war with the same
First, write shell scripts to add users in bulkImplementation method: To determine whether the user exists, there is a return error prompt, while determining whether the user file exists, does not exist then exit1. Create Add User Script[Email
#shell特性| Pipeline> Redirection>> Chasing heavier orientation2> Error Redirection2>> Append Error redirection#作业控制CTRL + Z to temporarily stop the jobJobs View JobFG recalled to front desk+ Higher PriorityFG 2 designated number recallBG tuned to
Create a simple shell script filePlacing the shell command in a text file requires first using a text editor (VIM)When you create a shell script file, you must specify the shell (#!/bin/bash) to be used in the first line of the fileThe format is:
(I am participating in the 2015 blog Star Selection, invite you to vote, thank you: HTTP://VOTE.BLOG.CSDN.NET/BLOGSTAR2015/CANDIDATE?USERNAME=ZHOUZXI)Recently, in the process of development work, a requirement was encountered: A shell script was
Objective
Online collection, thank the old boy and the big God, often read their blog and video, script is absolutely their own pure hand, what shortcomings, but also please the Great God guidance. If you feel that there is a violation of the
In shell programming, "EOF" is usually used in conjunction with "Return to the keynote shell again, which can be interpreted as a delimiter (delimiter). Since it is a delimiter, the form is naturally not fixed, where "EOF" can beCustom, but the
The server contains many engineering directories, SSH login, need to manually knock command, very troublesome, can establish automatic login script1, the server logon is the default directory in the creation of script files VI drivers.sh
First write a test script test.sh on the remote server and give the executable permission: chmod +x test.sh#!/bin/bash echo ' test22 ' echo $$ $ is the first parameter passed in the script, and our console prints this parameterTo create a new MAVEN
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.