im running the supermicro x11 motherboard which ties all fans to CPU temp and ignores my HDD temps.
Im trying to run the script from here every three minutes: https://forums.freenas.org/index.ph...ponse-to-hard-drive-temperatures.41294/page-4
Ive read the info here: http://doc.freenas.org/9.10/tasks.html#cron-jobs but it doesnt reeally tell you what to do.
when i add a cron job ive set the user to 'root'..
however in the command line im not sure what to put?
i created a dataset called 'scripts' and put the txt of the script in there then put the command as:
sh /mnt/zpool/backups/scripts/fan.sh
is this correct? im just totally lost as to what to put as the command and to check if the cron job is running correctly.
Edit: i keep getting this email when the cron job tries to run:
Email Title: Cron root@freenashost PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin" sh /mnt/zpool/backups/scripts/temp.sh > /dev/null
email Body:
/mnt/zpool/backups/scripts/temp.sh:
: not found
/mnt/zpool/backups/scripts/temp.sh: cannot create /var/cover
: Permission denied
/mnt/zpool/backups/scripts/temp.sh:
: not found
camcontrol: subcommand "cmd" requires a valid device identifier
/mnt/zpool/backups/scripts/temp.sh: 15: Syntax error: "elif" unexpected (expecting "then")
Im trying to run the script from here every three minutes: https://forums.freenas.org/index.ph...ponse-to-hard-drive-temperatures.41294/page-4
Ive read the info here: http://doc.freenas.org/9.10/tasks.html#cron-jobs but it doesnt reeally tell you what to do.
when i add a cron job ive set the user to 'root'..
however in the command line im not sure what to put?
i created a dataset called 'scripts' and put the txt of the script in there then put the command as:
sh /mnt/zpool/backups/scripts/fan.sh
is this correct? im just totally lost as to what to put as the command and to check if the cron job is running correctly.
Edit: i keep getting this email when the cron job tries to run:
Email Title: Cron root@freenashost PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin" sh /mnt/zpool/backups/scripts/temp.sh > /dev/null
email Body:
/mnt/zpool/backups/scripts/temp.sh:
: not found
/mnt/zpool/backups/scripts/temp.sh: cannot create /var/cover
: Permission denied
/mnt/zpool/backups/scripts/temp.sh:
: not found
camcontrol: subcommand "cmd" requires a valid device identifier
/mnt/zpool/backups/scripts/temp.sh: 15: Syntax error: "elif" unexpected (expecting "then")
Last edited: