shell脚本重启编译应用
2016-07-26 11:37
405 查看
#!/bin/sh #kill tomcat pid pidlist=`ps -ef|grep tomcat|grep -v "grep"|awk '{print $2}'` if [ "$pidlist" = "" ] then echo "no tomcat pid alive!" else echo "tomcat Id list :$pidlist" kill -9 $pidlist echo "KILL $pidlist:" echo "service stop success" fi echo "ant build" ant clean; ant build; echo "start tomcat" cd /work/tomcat/apache-tomcat-8.0.35/bin/ ./startup.sh ; echo "gulp ing" cd /home/project/webapp gulp build:zb
相关文章推荐
- bash中常见特殊字符使用大全
- Django入门:python manage.py dbshell错误
- 解决bash: mysql: command not found 的方法
- linux笔记:shell基础-环境变量配置文件
- linux笔记:shell基础-bash变量
- 终极 shell zsh
- Git 常用命令
- git bash客户端添加node_modules目录时,遇到长路径提示file name too long的解决方案
- -bash: /usr/bin/yum: /usr/bin/python: bad interpreter: No such file or directory
- xshell ssh连接远程服务器出现的乱码问题
- git stash 和 git cherry-pick
- git reset
- BashuOJ - 4479 足球联赛 暴力 水题 重庆一中高2018级竞赛班第四次测试 2016.7.25 Problem 1
- shell开发入门,第一个shell定时任务
- adb shell 命令详解
- vmware +ubuntu+xshell+vim
- HDU 5730 Shell Necklace cdq分治+FFT
- 利用shell脚本遍历文件夹内所有的文件并作整理统计
- 《Linux学习》之shell
- 利用XShell上传、下载文件(使用sz与rz命令),超实用!