2Array substitution
Echo ${a[@]/3/100}
A= (${a[@]/3/100})
Alarm system Requirements Analysis 1.shell Project-Alarm system
Requirements: Use the shell to customize a variety of personalized alarm tools, but the need for unified management, standardized
Tags: Linux warning script1. Needs and ideasRequirements: Use the shell to customize a variety of personalized alarm tools, but the need for unified management, standardized management.Idea: Specify a script package that contains the main program, subroutine, configuration file, mail engine, output log, and so on.Main program: As the entire script portal, is the lifeblood of the entire system.Configuration file: is a control center that uses it to swi
CentOS Shell Programming 3 "alarm system" 37th sessionThe first half of the classThe second half of the classThe entire project does not have any architecture, is single-machine, without the concept of server-side and clientJust a simple call to shell script, child shell, by adding more shell script extension featuresMail.sh: Do Mail convergenceUptime or W get load averageNeed to install PHP environmentYum
Computer failure for most users is a headache, because there are a lot of friends on the computer hardware and operating system knowledge of the relatively few, so hit the computer boot black screen, alarm, into the system and other phenomena when the comparison slowed foot chaos, so below to share my experience.
1. The breakdown of the computer "software failur
Requirements: Use the shell to customize a variety of personalized alarm tools, but the need for unified management, standardized management.Idea: Specify a script package that contains the main program, subroutine, configuration file, mail engine, output log, and so on.Main program: As the entire script portal, is the lifeblood of the entire system.Configuration file: is a control center that uses it to switch individual subroutines, specifying each
System Protection: Press (password) + (on) before going out. After the protection, you must go out within 30 seconds. Otherwise, an alarm will be triggered.System withdrawal prevention: (password) + (off). The system must be withdrawn within 30 seconds after entering the door. Otherwise, an alarm will be triggered.Chan
HP GEN9 Series Server health monitoring lamp Alarm, System diagnostics error-freeThe original server standard machine comes with a server power supply, after adding a power supply, into the F10 diagnostics, monitoring light amberResolution process: 1, for the swap test, PS1 and PS2 power supply position swap, detection failure2, the single power supply test, detection OK, the power supply is normal3, replac
functions in the shellThe function is to organize a piece of code into a small unit, and give the small unit a name, when the code is used to call the name of the small unit directly.The function must be placed first, since the call will not be written at the top, and the call will not succeed, and an error can be made.The $ #和 $ $ In the script is a special variable. $ #是表示变量的个数, $ A is expressedThe name of the script.Run results2. Demand, call function get current IPIfconfig |grep-a1 "Ens33:"
Reference Documentation:
Use MAILX to send mail using SMTP in LINUX5
Http://blog.sina.com.cn/s/blog_4d22b97201019yav.html2.sending of Mail (SMTP)-connection refused-but SMTP server isrunning!Http://bytes.com/topic/python/answers/32889-sending-mail-smtp-connection-refused-but-smtp-server-isrunningSolve SendMail mail problems under 3.Linuxhttp://blog.163.com/[email protected]/blog/static/1649345722013111853220917/Send mail using the Mail command under 4.LinuxHttp://www.mzone.cc/artic
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.