1 Star 0 Fork 14

iceMan / sc

forked from 铅笔刀 / sc 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
createqueuecron.sh 352 Bytes
一键复制 编辑 原始数据 按行查看 历史
铅笔刀 提交于 2020-12-12 05:46 . 'init'
#!/bin/bash
basepath=$(cd `dirname $0`; pwd)
result=$(crontab -l|grep -i "* * * * * $basepath/queue.sh"|grep -v grep)
if [ ! -n "$result" ]
then
crontab -l > createcrontemp && echo "* * * * * $basepath/queue.sh" >> createcrontemp && crontab createcrontemp && rm -f createcrontemp
echo -e "\033[32mOk.\033[0m"
else
echo "The process has been add ."
fi
1
https://gitee.com/thatsimple/sc.git
git@gitee.com:thatsimple/sc.git
thatsimple
sc
sc
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891