Documentation
. /home/stor2rrd/stor2rrd/etc/stor2rrd.cfg ; sh ./bin/genreport.sh <user> <report name>
$ . /home/stor2rrd/stor2rrd/etc/stor2rrd.cfg ; sh ./bin/genreport.sh admin "CSV test" manual startup : bin/genreport.sh "admin" "CSV test" reporter START : Mon Nov 19 09:18:03 2018 ... zip report : admin/CSV_test/20181119_091803/* to /home/stor2rrd/stor2rrd/reports/admin/CSV_test/CSV_test-20181119_091803.zip emails found : 0 download : /home/stor2rrd/stor2rrd/reports/admin/CSV_test/CSV_test-20181119_091803.zip stored zip : /home/stor2rrd/stor2rrd/reports/admin/CSV_test/CSV_test-20181119_091803.zip stored report : /home/stor2rrd/stor2rrd/reports/admin/CSV_test/20181119_091803 reporter END : Mon Nov 19 09:18:13 2018Script returns "1" as the exit code when report creation fails.
$ crontab -e 0 6 * * * . /home/stor2rrd/stor2rrd/etc/stor2rrd.cfg ; sh ./bin/genreport.sh admin "CSV test" > /var/tmp/stor2rrd-report-CSV_test.out 2>>/var/tmp/stor2rrd-report-CSV_test.err