SHELL Simple script Update in

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

Shell Programming Advanced 1.7 Case Selection

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

Shell combat problem, can you make it all?

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

Shell Programming Advanced 1.3data Command

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 Environment variables

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

Shell concurrent multi-process simultaneous execution

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

Shell programming advanced 1.2 shell structure and execution

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

[Note]shell Basics of function usage

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          }    

[Note] Login Shell vs. non-logon shell

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

Tomcat Maven shell script saves time and effort

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

Shell's Tomcat log backup

#!/bin/bashbackdir=/backup/logs/' Date +%f ' catdir=/home/tomcat/apache-tomcat/logsbackfile= ' find $CATDIR-type F- Mtime +3|grep-v catalina.out ' ceshi= ' echo $BACKFILE |wc-l ' Logfile=/home/lichuang/backup.logbackup () {if [$CESHI-le 1]t hen echo

Linux systems write shell scripts to batch create and delete users

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

1.1 Shell Features

#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

Building Shell Basic Scripts

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:    

Shell script implementation to read the configuration file

(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

Shell Common Scripts

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

Shell monitoring Tomcat (three) port is normal

#!/bin/bash#by lc#protnum= ' netstat-lntup|grep java |wc-l ' [email Protected]tomcat_prot () {if [' Netstat-lntup|grep Java |wc-l '-ne 9]then clear Echo-e "\033[31m############################################\033[0m" Echo-e "\033 [31m#\033[0m "" \033

Shell Programming--eof (reprint) that requires interaction

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

Shell script-Quick Arrival Directory

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

Java Connection SSH Call Shell

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

Total Pages: 541 1 .... 476 477 478 479 480 .... 541 Go to: GO

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.