- 论坛徽章:
- 0
|
=====================test.sh================
shutdown -r
================end======================
===========test.cron=====================
#!/bin/sh
10 17 * * * /root/test.sh
================================
#crontab test.cron
#crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (test.cron installed on Sat Nov 19 17:09:43 2005)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
11 17 * * * /root/test.sh
root邮箱总是收到信,说是:/bin/sh: /root/test.sh permission denied.
这到底是怎么回事?crond在后台运行。请高手指点一下,谢谢!
问题基本解决,确实是权限问题。
需要将test.sh中shutdown -r 改为/sbin/shutdown -r
[ 本帖最后由 miidii 于 2005-11-19 21:28 编辑 ] |
|