- 論壇徽章:
- 0
|
cat /crontab/5.sh
#!/bin/sh
cp -r /soft/nxgz /crontab/nxgz/`date +%y%m%d_%T`
cat /var/spool/cron/
root
cat /var/spool/cron/root
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.8943 installed on Fri Jun 10 08:29:33 2005)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
30 18 * * * /crontab/1.sh
0 8 * * * /crontab/2.sh
30 20 * * * /crontab/3.sh
*/5 * * * * /crontab/5.sh
ll /crontab/5.sh
-rwx------ 1 root root 60 6月 13 10:00 /crontab/5.sh
ll /crontab/
總用量 24
-rwx------ 1 root root 89 6月 7 18:51 1.sh
-rwx------ 1 root root 89 6月 7 18:51 2.sh
-rwx------ 1 root root 135 6月 8 17:40 3.sh
-rwx------ 1 root root 60 6月 13 10:00 5.sh
-rwx------ 1 root root 58 6月 9 18:08 5.sh~
drwx------ 9 root root 4096 6月 14 08:33 nxgz
ll /var/spool/cron/
總用量 8
-rw------- 1 root root 294 6月 10 08:29 root
不用解釋,高手都可以看懂的,不知為什么第5個5.sh不執(zhí)行 ?
我詳細查看它的權限,并且重新啟動crond還是不行,前面3個可以正常執(zhí)行。
如果我手動執(zhí)行/crontab/5.sh可以執(zhí)行的。 |
|