Shell scripts, automating the release of Tomcat project scripts,
1. vko2c_auto_build_by_scp.sh
File contents:
#---------------------Start---------------------#
#封装shutdown函数, close the Tomcat service
#封装kill函数, force the process of shutting down Tomcat
# Call Close function with Project backup
# using expect, use SCP free password, remote copy Root.war package
# Tomcat launcher with realistic boot log
#---------------------End---------------------#
2. Test scripts
#chmod +x vko2c_auto_build_by_scp.sh
#./vko2c_auto_build_by_scp.sh Tomcat_xiaoyuan
3. Using aliases
#./vko2c_auto_build_by_scp.sh
# #名字有点长, input is inconvenient, we can use alias processing
To view an existing alias
#alias
Then in execution, it can be done (the name of the above has been changed)
#vko2c_build Tomcat_xiaoyuan
To this, our automatic release of the foot of the completed, hope that everyone write their own, practice a practice, and improve together.
Turn from:
Shell scripting, automating the release of the Tomcat project-today's headline (toutiao.com)
http://toutiao.com/a6320300161852817666/
Shell script, automating the release of the Tomcat Project "Go"