Hello,
I recently installed Freenas on my self-build system. All working properly, except that i'm missing daily/weekly reports. I've read that on earlier versions it was a build in feature, but the releasenote's of version 9.2.0 tell that you can add a cron job to do this.
http://www.freenas.org/whats-new/2013/12/freenas-9-2-0-release.html
I tried the following solution:
http://blog.frankvh.com/2014/03/15/freenas-weekly-status-email/
But it just reports back with the following e-mail messages (I do receive an e-mail :)! )
Subject:
Cron <root@freenas> PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin" /bin/sh /mnt/Volume1/Software/Freenas/emailstatusreport.sh > /dev/null
Body/Message:
/mnt/Volume1/Software/Freenas/emailstatusreport.sh:
: not found
/mnt/Volume1/Software/Freenas/emailstatusreport.sh:
: not found
/mnt/Volume1/Software/Freenas/emailstatusreport.sh: 9: Syntax error: word unexpected
Anyone that can help me to implement daily reports?
I recently installed Freenas on my self-build system. All working properly, except that i'm missing daily/weekly reports. I've read that on earlier versions it was a build in feature, but the releasenote's of version 9.2.0 tell that you can add a cron job to do this.
http://www.freenas.org/whats-new/2013/12/freenas-9-2-0-release.html
I tried the following solution:
http://blog.frankvh.com/2014/03/15/freenas-weekly-status-email/
But it just reports back with the following e-mail messages (I do receive an e-mail :)! )
Subject:
Cron <root@freenas> PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin" /bin/sh /mnt/Volume1/Software/Freenas/emailstatusreport.sh > /dev/null
Body/Message:
/mnt/Volume1/Software/Freenas/emailstatusreport.sh:
: not found
/mnt/Volume1/Software/Freenas/emailstatusreport.sh:
: not found
/mnt/Volume1/Software/Freenas/emailstatusreport.sh: 9: Syntax error: word unexpected
Anyone that can help me to implement daily reports?