shell
YangTG5号
基于CSDN恶心程度,无限期停更
展开
-
转载:spring boot shell启停脚本(二)
#!/bin/bash ## Author LinkinStar ## UPDATE 2019-01-05 version="1.0.1"; cd `dirname $0` appName=$2 if [ -z $appName ];then appName=`ls -t |grep .jar |head -n1` fi function start() { count=`ps -ef |grep java|grep $appName|wc -l` if [ $count != 0 ];t.翻译 2020-06-02 09:25:19 · 219 阅读 · 0 评论 -
shell 检测文件大小
# 文件路径 filePath=${1} #文件名称 fileName=${2}; #查看文件大小 count=`cat ${filePath}/*.txt|wc -l` if [ $count -eq 0 ]; then echo "file size $count" ##rm -rf $filePath/*.txt else echo "file size $count" fi ##执行命令 sh cheakFile.sh 文件路径 文件名称 ...原创 2020-05-20 09:24:35 · 932 阅读 · 0 评论 -
CentOS spring-boot启动shell脚本
--------原作者https://blog.csdn.net/dream_ll/article/details/79593078 #!bin/bash APP_NAME=integral-0.0.1-SNAPSHOT.jar ##用来提示输入参数 usage(){ echo "Usage sh执行脚本.sh [start|stop|restart|status]" ex...翻译 2019-05-17 23:59:49 · 969 阅读 · 2 评论