Script is very practical and can simplify manual operations. The following script deletes the log files from the previous seven days.
Bat script:
@ Echo Off Echo ------------ Delete log file, Develop by Terry ------------- Echo Today Date ::% Date % :: Year Set YY = % Date :~ 0, 4 % :: Month Set MMS = % Date :~ 5, 2 % If % MMS % gtr 10 ( Set Mm = %
Use the script kill process, Syntax: run script + process name, script kill
The script is attached below, and the permission must be attached to X for execution.
#! /Bin/sh # pid kill thread for chenglee # if fileformat = dos, update fileformat = unix # code: set fileformat = unix # check: set ff? If [$ #-lt 1] then
[[Email protected] shell]# date +%y year, 4-digit2018[[Email protected] shell]# date +%y year, 2-digit18[[Email protected] shell]# date +%m Month04[[Email protected] shell]# date +%m M, number of minutes57[[Email protected] shell]# date +%d13[Email protected] shell]# date +%d Month Day year04/13/18[Email protected] shell]# date +%y%m%d20180413[Email protected] shell]# date +%f2018-04-13[[Email protected] shell]# date +%h hours16[[Email protected] shell]# Date +%s timestamp1523607008[[Email prote
Php:It is usually the beginning of the code you want to check to record a time, the end of the record a time. Take the difference value,the efficiency of database SQLSQL explain (MySQL), enable slow query log to record slow queries. Usually also depends on the database design is reasonable, the demand is reasonable and so on.But this time is generally very fast, in less than a second, so you can not directly use mktime ()function Getmicrotime () {List ($usec, $sec) = Explode ("", Microtime ());
-20.1 Shell Script Introduction
-20.2 Shell script structure and execution
-20.3 date command usage
-20.4 variables in shell scripts
# 20.1 Shell script introduction
-Shell is a scripting language Follow aming_linux blog.lishiming.net
-Can use syntax such as logical judgment, loop, etc.
-Can customize functions
-shell is a collection of system commands
-Shell
Tags: lvsdr startup script simulation keepalived high Availability scriptI. Script pre-run simulation environmentdr:server1:172.25.29.1 Ipvsadm keepalivedrs:server2:172.25.29.2 ARPTABLES_JF httpdrs:server3:172.25.29.3 ARPTABLES_JF httpddr:server4:172.25.29.4 Ipvsadm keepalivedInstall Server1, Server2, Server3 software before using the script, and do a good job of
Heaton special script for World team members
Unzip the file to the Cstrike directory
Software Type: CS1.5 script
Operating Environment: Win9x/winnt/win2000/winxp/win.net/winme
Software Introduction: Super Abnormal script, trajectory optimization
Finally, the script is not a cheat, and may not be the result you expect.
With the replacement of the Times, the passage of time, after generation, even after 00 to become mainstream consumers, the impact of the way consumers have fundamentally changed, because this group of people basically do not watch TV, newspapers, magazine ads, only look at mobile phones, social networks. It is an indisputable fact that the influence of traditional advertising is being rapidly strengthened. And this is the opportunity we can seek, through the network of drainage, to convert them
1.php Execution Time:$begin=Microtime(true);//gets the time that the program started executing//some code here to execute$stop=Microtime(true);//gets the time that the program execution endedList($m 0,$s 0)=Explode(" ",$begin);List($m 1,$s 1)=Explode(" ",$stop);$runtime=($s 1+$m 1-$s 0-$m 0) *1000;Echo' $etime-$stime.‘ microseconds; 2.SQL Execution time (actually the same as above):$begin=Microtime();mysql_query($sql);$stop=Microtime();List($m 0,$s 0)=Explode(" ",$begin);List($m 1,$s 1)=Explode(
I. Location of the tags. If embedded code is included, only the external script file is downloaded and executed, and the embedded code is ignored.
2, regardless of the code, as long as there is no defer and async attributes, the browser will follow the
JavaScript
EVAL script Numkeys key [key ...] arg [arg ...]
Starting with the Redis 2.6.0 release, the LUA script can be evaluated using the EVAL command with the built-in LUA interpreter.The script parameter is a LUA 5.1 script that runs in the Redis server context, which does not have to (and should not) be defined as a LUA fun
In fact, this topic is a bit old-fashioned, but I still feel that I can write it because it involves more thoughts on loading scripts in parallel.
Improve page loading speed for high parallel loading of script resources .. we may need to dynamically load scripts... one unavoidable method is to use head. appendchild (SCRIPT); because this method can directly cross-origin.
However, sometimes the dynami
Improve page loading speed for high parallel loading of script resources .. we may need to dynamically load scripts... one unavoidable method is to use head. appendchild (SCRIPT); because this method can directly cross-origin.
However, sometimes the dynamic loading of Scripts may ensure their execution sequence. the ideal state is that all scripts can be performed only when the current number of HTTP conn
Unity3D script execution sequence and compilation sequence, unity3d script
Execution sequence and compilation sequence of scripts in Unity3DDog planing Learning Network]In Unity, you can create many scripts at the same time and bind them to different game objects, each of which runs in its own lifecycle. This article describes how to compile and execute scripts in Unity.Execution sequence of event
Learn CGI scripts (scripts)CGI meaning is Common Gateway Interface, a browser-based input, a program method that runs on a Web server. CGI scripts enable your browser to interact with the user, to find a noun in a database, to provide comments you write, or to select several entries from a form and get a clear answer. If you've ever met a form or search on the Web, you're using a CGI script. You may not be aware of it, because most of the work is done
Shell script learning and shell script1111111111111 clear the simple command script of the messages log file under/var/log/Var/log/the system file under the log file must have the root permission:$ UID is the global variable of the system:Make make install indicates that the previous step is successful.Make | make install indicates that the previous operation is unsuccessful.Three methods for clearing logs
Special folder and script compilation sequence, script compilation SequenceZookeeper
Special folder and script compilation SequenceIn most cases, you can select the name of any folder you like in your project, but unity reserves some names to indicate that the content has a special purpose. Some of these folders affect the sc
Hello, I'm a little panda.Reprint Please specify source: http://blog.csdn.net/a237653639/article/details/45766101First summary, then prove.Summarize:The purpose of disabling the script is to make the script "not executed", and the purpose of enabling it is to "execute" the script. The above is my original idea, in fact, this understanding is biased. To be precis
The strange script in LINUX is rewritten to solve the problem that the script cannot be executed.
**************************************** ******************************** **************
Original Works are from the blog of "Deep Blue blog". You are welcome to repost them. Please indicate the source when you repost them. Otherwise, the copyright will be held legally responsible.
Please leave a message or ema
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.