随笔分类 - linux
摘要:#!/usr/bin/env bashsource /etc/profileecho " *************** start filter *************** "# get befor six month last day#m0=$(date -d "$(date -d 'mon
阅读全文
摘要:查看定时任务 crontab -l 注册定时任务 crontab -e然后就像 vim 一样编辑自己的定时任务。如: * * * * * . /home/hadoop/timer/check_job.sh >> /home/hadoop/timer/logs/check_job.log 定时任务解析
阅读全文
摘要:用shell脚本监控进程是否存在 不存在则启动的实例,先上代码干货: 1 2 3 4 5 6 7 8 #!/bin/sh ps -fe|grep processString |grep -v grep if [ $? -ne 0 ] then echo "start process....." el
阅读全文

浙公网安备 33010602011771号