crontab的坑

1、

命令  全路径

(eg:which mysql)

2、
执行脚本  (脚本中加上#!/bin/bash)

eg: /bin/bash script.sh

3、

输出信息(>>) 使用全路径

eg: /script/a.txt

原文地址:https://www.cnblogs.com/fanxuanhui-linux/p/6184986.html