![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
文章平均质量分 58
天下太平
人生像风铃
展开
-
docker镜像制作及发布
以centos为例。 主要内容:安装docker,制作镜像,发布镜像。原创 2022-01-12 14:30:27 · 637 阅读 · 0 评论 -
svn review shell
#每5分钟执行一次 #crontab –e #*/5 * * * * /home/tool/log_monitor/*.sh 5 function rand(){ min=$1 max=$(($2-$min+1)) num=$(date +%s%N) echo $(($num%$max+$min)) } token=`curl -X POST https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/inte原创 2021-10-29 15:21:42 · 154 阅读 · 0 评论 -
脚本进程唯一性检查
#唯一性检查 CheckUnique() { pidfile=${filename}.pid #filename为需要检测脚本的文件名 if [ -f ${pidfile} ]; then pid=`cat ${pidfile} | cut -d' ' -f1` pid_count=`ps -ef | grep -v grep | awk原创 2013-03-02 16:51:28 · 1043 阅读 · 2 评论 -
跨平台的高精度计时类
windows环境用 linux环境用原创 2014-05-12 18:02:23 · 1266 阅读 · 2 评论 -
linux 输出目录树、文件树
输出目录树: find . -print 2>/dev/null | awk '!/\.$/ {for (i=1; i 输出文件树: find . -type d -print 2>/dev/null | awk '!/\.$/ {for (i=1; i<NF; i++){printf("%4s","|")} print("--"$NF)}' FS='/';原创 2014-04-01 10:22:14 · 6190 阅读 · 0 评论