- 论坛徽章:
- 0
|
# crontab -l
0 8-10 * * * /root/touch.sh `date -d "1days ago" +%Y/%m/%d`
0 21-23 * * * /root/touch.sh `date +%Y/%m/%d
请教上面两句话是什么意思?前面的到时间运行touch.sh脚本,这明白.但后面时间是什么意思?
在计划任务中没有执行,当事人说直接运行时可以的..但不明白这两条语句具体是什么意思?
望高人指点...多谢le
报错:
Subject: Cron <root@ip> /root/touch.sh `date +
Content-Type: text/plain; charset=ANSI_X3.4-1968
Auto-Submitted: auto-generated
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Date: Mon, 13 Feb 2012 10:00:01 +0900 (JST)
Status: RO
/bin/sh: -c: line 0: unexpected EOF while looking for matching ``'
/bin/sh: -c: line 1: syntax error: unexpected end of file |
|