Shell scripts that automatically purge expired tomcat logs

(Friendly hint: This article belongs to the elementary shell programming, the Master can ignore this article)During the operation of the product environment, daily log files are cut to produce the day-to-date logs, which are generally not useful

Operation and maintenance experience sharing (vi)--crontab The problem of not executing shell scripts correctly (ii)

Operation and maintenance experience sharing as a topic, currently a total of 7 articles Operation and maintenance experience sharing (i)--Linux Shell's Chatterserver service control script Operation and maintenance experience Sharing

shell-automatically deploy the war package to Tomcat

#!/bin/shCurl=$1Crootdir=/data/tomcat/tomcat-usercenterShrootdir=/data/tomcat/dll#delete old versionRM-RF $shRootDir/usercenter-web.war*#默认war包地址为jenkins上最后一次打包成功的urlif [$cURL =

Write a shell script to grab stock history data using wget

Today, big data boss gave me a task-grabbing stock history data. As a wget, I looked for it on the Internet and found that it was really a very powerful Linux download tool. I have been deeply shocked. The following is a description of some of today'

WDCP Environment Build shell script Analysis--lanmp.sh---lib/common.conf

#分析文件lanmp. SH, which introduced a series of function files in its head.  lib/common.conf. lib/common.sh. lib/mysql.sh. lib/apache.sh .  lib/nginx.sh. lib/php.sh. lib/na.sh. lib/libiconv.sh. lib/eaccelerator.sh. lib

Pipeline commands for Bash Shell

1.Cut: Command Select cut-d ' delimited character '-F fields-D: followed by delimited characters, used with-f-F: Cutting a piece of information into several segments according to the delimited character of-D-C: Remove a fixed character range in

Automatically download the source code _ and Compile _ package _ deployment _ Restart the service shell script

svn

The various operating meanings of the shell in this, can refer to my three years ago this

Linux script programming (shell) shallow (reprint)

Linux script (shell) programmingAh, yesterday on the Internet to see an article about Linux/unix shell, think of their last write this thing is also a year ago, think about it is almost forgotten.or tidy up, do a review, it may be used in the future,

String manipulation in the shell

String in Shell: string is the most commonly used and most useful data type in shell programming (in addition to numbers and strings, no other type is easy to use, haha), strings can be in single quotes, or double quotes, or without quotes. The

Shell script for utility (not periodically updated)

1, the implementation of the Sourse directory part of the file (the file name is listed as a text list, text file name list), copied to another directory/opt/targe/#!/bin/bashcd/opt/source for file in ' cat/opt/source/list ';d ocp-r-n

Shell chapter (i)

Login Shell and Non-login Shell:Login Shell: When you get the shell, you need a full login process. such as: Tty1~tty6 login, you need to enter a user name and password. The shell you get at this point is called loginShellNon-login Shell: When you

Shell script that executes system commands and writes output to a log file

Presumably the requirement is that the AIX system Usysfault command takes the fault light information, but this command appears to be performed only by the root user, and the other user executes the error. All sorts of ways to empower all fail, so

Some of the supernatural powers of ${} in the shell

Suppose we define a variable as:File=/dir1/dir2/dir3/my.file.txtWe can use${ }Replace each to get different values:${file#*/}: Take out the first one./And the string to its left:Dir1/dir2/dir3/my.file.txt${file##*/}: Take the last one off./And the

Shell Script Monitors Server status

First, the installation of Mutt1 yum-y Install postfix2 #需要安装sendmail并开启防火墙的25端口, if you need to receive mail 110 port also open 3 yum-y install Mutt  Second, configuration informationAbout the configuration information, there is a point to explain,

Using the Linux shell to automatically top the sticker

In the forum above Post asked what things, once not top, the post on the second sank, but really do not want to go to the top every moment, how to do? The following shows how to use the shell's crontab to implement automatic top-pasting.Gossip not

Shell in && | | How to use

&& operators:Command1 && Command2&& the command on the Left (command 1) returns True (that is, returns 0, executed successfully) and the command (Command 2) on the right side of the,&& can be executed, in other words, "If this command succeeds &&

Special characters in the Bash Shell

What are the special characters in the bash shell? Some special characters in the bash shell do not represent the meaning of their characters themselves, but have another meaning, called: meta-meaning. 1. Characters: # Represents a

Linux shell arrays

From:http://www.jb51.net/article/34322.htmThe bash shell supports only one-dimensional arrays, but there is no limit to the number of arguments.Declares an array:Declare-a Array(In fact, you don't have to declare it, you assign it directly to the

Array Bash shell

Http://www.cnblogs.com/chengmo/archive/2010/09/30/1839632.html#!/bin/The bash# script detects an offline host opportunity to send an email notification that can be run all the time. # Please set mail gatewany IP lastip Four items according to your

Peanut Shell 2.0 Tutorial (troubleshooting NAT translation issues)

Article background:Wrote an article on how to build a personal website on your personal computer.Create a Web site that is entirely up to you (i)But a personal website is built on the PC, and the external computer is not directly accessible to our

Total Pages: 541 1 .... 201 202 203 204 205 .... 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.