crontab的坑

 

1、

命令  全路径

(eg:which mysql)

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

eg: /bin/bash script.sh

3、

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

eg: /script/a.txt

 

posted @ 2016-12-15 21:56  xuanhui  阅读(136)  评论(0编辑  收藏  举报