Crontab无法写入文件

时间:2014-06-30 09:09:44

标签: unix sendmail crontab

我有磁盘清理脚本。下面是sendmail函数的初始部分,它写入一个html文件,然后使用sendmail邮寄它。

send_mail () {
       echo '<!DOCTYPE html><html><body>'>cleanup.htm
       echo '<h4>Disk Space clean up process is completed on root mount point on     rinacac-test server. Present status is as below- </h4><br><br>'>>cleanup.htm
       echo '<table align="justify" border="4"><col width="130"><col width="100"><col width="100"><col width="100"><col width="100">'>>cleanup.htm

依此类推......当我通过命令行运行它时,它运行得很好......但是通过crontab,它不会创建任何cleanup.htm文件。我已经提供了777的许可。使用ubuntu ....

0 个答案:

没有答案