随笔分类 - Shell
摘要:1. 启动 2. 停止 3. 重启 .
阅读全文
摘要:#!/bin/bash echo -e "\n\n\n" #force kill flag,if equal [f] to force kill all flag="HelloShell" if test $# -gt 0 then flag=$1 fi pids=`ps -ef|grep tomcat | grep -v "grep" | awk '{print $2}'` ...
阅读全文
摘要:#!/bin/bash now=`date "+%Y-%m-%d %H:%M:%S"` #kill -9 `ps -ef | grep transfer.jar | grep -v "grep" | awk '{print $2}'` pids=`ps -ef|grep -w transfer.jar | grep -v "grep" | awk '{print $2}'` if tes...
阅读全文