蓝森林首页 | 返回主页 | 本站地图 | 站内搜索 | 联系信箱 |
 您目前的位置:首页 > 自由软件 > 技术交流 > 应用编程


    

蓝森林 http://www.lslnet.com 2006年6月26日 11:18


/usr/bin/w >> /var/adm/log/`date +%m%d`w不能放在crontab

0,30 * * * * /usr/bin/w >> /var/adm/log/`date +%m%d`w不能放在crontab?
0,30 * * * * /bin/bash /usr/bin/w >> /var/adm/log/`date +%m%d`w
0,30 * * * * /usr/bin/w >> /var/adm/log/w 则不会报错.

mail的信息

Subject: Output from "cron" command
Content-Length: 136

Your "cron" job on test
/bin/bash /usr/bin/w >> /var/adm/log/`date +

produced the following output:

sh: /var/adm/log/: cannot create


http://www.lslnet.com/linux/#viewthread.php?tid=674903&extra=page%3D1

不行
0,30 * * * * /bin/bash /usr/bin/w >> /var/adm/log/`date '+\%m\%d'`w
得到的是
\04\10w

haha.
这个问题waker不知道回答多少遍了。

-->

难道你知道??



Copyright © 1999-2000 LSLNET.COM. All rights reserved. 蓝森林网站 版权所有。 E-mail : webmaster@lslnet.com