willrun4fun
Dabbler
- Joined
- Jan 19, 2016
- Messages
- 29
Here is the output and log from that one:
I then ran it again with the drives spinning and got this:
Line 85
let Tsum=$Tsum+$TEMP
Code:
[root@freenas ~]# ./spincheck2.sh How many minutes do you want between spin checks? 1 Saturday, Jul 02 ada1 ada2 ada3 ada4 Tmax Tmean 14:08:48 STANDBY STANDBY STANDBY STANDBY ^0 0.00 ERRc= 0.00 14:09:49 STANDBY STANDBY STANDBY STANDBY ^0 0.00 ERRc= 0.00
Code:
[root@freenas ~]# cat spincheck.log How many minutes do you want between spin checks? Saturday, Jul 02 ada1 ada2 ada3 ada4 Tmax Tmean 14:08:48 STANDBY STANDBY STANDBY STANDBY ^0 0.00 ERRc= 0.00 14:09:49 STANDBY STANDBY STANDBY STANDBY ^0 0.00 ERRc= 0.00
I then ran it again with the drives spinning and got this:
Code:
[root@freenas ~]# ./spincheck2.sh How many minutes do you want between spin checks? 5 Saturday, Jul 02 ada1 ada2 ada3 ada4 Tmax Tmean 14:18:57 Spin 6) ./spincheck2.sh: line 85: let: Tsum=0+6): syntax error in expression (error token is ")") Spin 5) ./spincheck2.sh: line 85: let: Tsum=6+5): syntax error in expression (error token is ")") Spin 0) ./spincheck2.sh: line 85: let: Tsum=11+0): syntax error in expression (error token is ")") Spin 6) ./spincheck2.sh: line 85: let: Tsum=11+6): syntax error in expression (error token is ")") ./spincheck2.sh: line 42: printf: 6): invalid number ^6 4.25 ERRc= -29.32
Line 85
let Tsum=$Tsum+$TEMP
Last edited: