Kill the shell script code for a particular process _linux shell

1. Methods of primitive violence Copy Code code as follows: mylinux:/home/zhanhailiang/public_html # Killall Nginx 2, gentle point of approachFinds the PID for the specified process and kill|kill-usr1 it off Copy Code code as

Shell script timed backup clears the code that runs the system log _linux shell

First, write backup and clear old log shell script: Copy Code code as follows: #!/bin/sh #backup Eoslog #author Rhao #date 2008-12-27 #定义环境变量Eos_home=/home/eosSas_home=/home/eos/sas # Test primary and secondary nodes.If

Implement server monitor and alarm small script with Shell+sendmail _linux shell

This email alert script is everywhere, a lot of use of sendmail, Postfix, feel a bit overqualified, and some use Perl net::smtp and AUTHEN::SASL module, but I use Perl is not good, The old send out some baffling mails (for example if (a>1) {print (a)

Shell script implementation randomly generates 10 8-bit passwords _linux shell

Randomly generated 10 8-bit password shell scripts1. First Capital Letter2. Middle six-digit alphanumeric random mixing3. Eighth place [0-9] #!/bin.bash for i in {1..10} do a= ' head-c 500/dev/urandom | tr-dc a-za-z | tr [A-z] [a-z]|head-c 1

In the shell script, implement switch user and execute command operation _linux Shell

Today, my company colleagues came to me and said that I was going to execute the Python script on the server with another user, but it was always done by the root user in the crontab, so I thought of a lazy way to use the shell script to switch to

Shell script to slow down system time (used when testing the server) _linux Shell

The company's recent server testing, the need to constantly adjust the system time, one or two is ok half, a little more points, on a variety of entanglements, the author of these several sets of the author is going crazy. Eldest brother: All speed

Create a daemon code instance in a template _linux shell

Copy Code code as follows: #include "Wrap.h" #define MYDOMAIN_FLAG "/tmp/.mydomain_log" void Domain_end () {Unlink (Mydomain_flag);} int Domain_init () {int FD;Fd=open (mydomain_flag,o_rdwr| O_creat| o_excl| O_APPEND,0600);if (fd==-1)Err_

Ubuntu Server configuration apache2.4 speed limit function shell script sharing _linux Shell

The process is written in a script, the principles are written in the comments, you understand. One-click operation is sudo bash xxx.sh Copy Code code as follows: #!/bin/bash #cd到临时目录创建配置文件 Cd/tmp (Cat Setoutputfilter

Shell script automatically updates hosts to achieve wall-free access to Google_linux shell

The last time we sent a Python update Google hosts script, today saw someone sent a shell to get Google hosts script, I took to a slightly more simple processing, the following gives you the shell version of the update of Google hosts script.

How to use shell programming hollow lattice _linux shell

1. When defining a variable, no spaces can be left on either side of the = number.eg:Gender=femal ———— RightGender =femal ——— –wronggender= femal ——— –wrong2. Conditional test statement [Both sides of the symbol must be left blank.eg:if [$gender =

How to debug shell scripts with built-in variables _linux shell

The general shell script debugging is basically echo to deal with the larger script when, it is more trouble, out of the question, is not very good to locate which line of code problems.In fact, some of the variables built into the shell can be a

A shell script to test download speed _linux shell

Using the shell to test the download under Linux, the code is as follows: Copy Code code as follows: #!/bin/bash #date: 20140210 #used for test server download speed R_host= "188.18.28.19" R_dir= "/home/test0208/tmp" r_file= "$r _dir/

Share a useful iptables script (various filtering notation references) _linux shell

This iptables script is good, very practical, according to the actual application can be changed to use their own. Share it for everyone to refer to. The original author anon. The source code is as follows: Copy Code code as follows:

VTune Auto Install script share _linux Shell

Copy Code code as follows: #!/bin/bash #!/usr/bin/expect-f #!/usr/bin/env Bash Yum Install-y expect wget Cd/root wget http://172.16.92.99/share/tar/vtune_amplifier_xe_2013_update15.tar.gz wget http://172.16.92.99/share/tar/EVAL_L_VT__VGXB-

A simple, fully automatic installation LNMP server environment shell script sharing _linux Shell

This script has been used for more than a year on the production server, and this script advocates simplicity and beauty, and requires only one script to automatically configure LNMP on any server that has a network. In the script execution

Shell script implements code sharing for copying files to multiple servers _linux shell

In a multiple-machine cluster environment, often faced with the modification of the configuration file after copying to multiple servers, the traditional implementation of the SCP is troublesome, so write the following shell script, you can copy the

Some of their common shell scripts share _linux Shell

Wrote a little shell instance of myself, though very small, but all the big programs are stacked up by small modules, programmers must understand a script writing, and I, will only work under Linux, so you can only write Linux shell script, oh, this

Centos/rhel implementation Nginx Self-startup script instance _linux Shell

Usually in the CentOS, Rhel OS, we mostly through the chkconfig to manage services, such as the boot automatic service.Here to introduce a very useful nginx startup script. and simple to use, as follows: 1. Execute the following order:

Shell multithreaded operation and thread number control instance _linux shell

Objective In the business development process, often in the background to write some shell script processing data, but it is estimated that many people do not know that the shell script can also support multithreading, and very simple. This article

Java Run Shell Script method sample _java

You can now execute a command by using the Commandhelper.execute method, which implements the Copy Code code as follows: Package Javaapplication3; Import Java.io.BufferedReader; Import java.io.IOException; Import

Total Pages: 541 1 .... 242 243 244 245 246 .... 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.