随笔分类 - Linux
摘要:在用crontab进行定时任务时,发现任务并没有执行。而手动bash yourshell.sh时可以正常的执行程序。以下是个人的解决流程。 一、将错误打印打out.log */10 * * * * bash yourshell.sh >> /tmp/out.log 2>&1 二、查看out.log发
阅读全文
摘要:最近接触到定时执行程序的需求,所以学习了解了一下crontab。本文首先介绍crontab的语法知识,然后做一个demo。 一、crontab语法 1.crontab基本格式 {minute} {hour} {day-of-month} {month} {day-of-week} {full-pat
阅读全文

浙公网安备 33010602011771号