- 论坛徽章:
- 0
|
参考了论坛所有的资料,我的crontab就是执行不起来
原帖由 "platinum" 发表:
vi /etc/crontab
append your new path to top, then save and exit and restart your CROND
请举个例子。比如,我要定时执行/home/oracle/bin/exp.sh(exp.sh在shell中测试通过)
我的oracle 用户的crontab:
0 2 * * * /home/oracle/bin/exp.sh
我在/etc/crontab中如何增加我的"new path"?
我的/etc/crontab内容为:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
谢谢! |
|