CPU/Drive Temp Error - Unary Operator
Posted: September 10th, 2011, 8:22 pm
Ian, Great site, many thanks. Complete newbie but following everything quite well - thanks. I've followed your scripting instructions with ease but when I submitted new jobs in Execute new cron job, I thought I'd run them both to see if they worked correctly and got the following outputs :
>
Output from command /home/djsherlock72/MyScripts/DriveTempShutdown.sh 35 45 >/dev/null ..
/dev/sda: Permission denied
/home/djsherlock72/MyScripts/DriveTempShutdown.sh: line 59: [: =: unary operator expected
/home/djsherlock72/MyScripts/DriveTempShutdown.sh: line 68: [: -ge: unary operator expected
/home/djsherlock72/MyScripts/DriveTempShutdown.sh: line 79: [: -ge: unary operator expected
>
and
>
Output from command /home/djsherlock72/MyScripts/CPUTempShutdown.sh 35 45 >/dev/null ..
/home/djsherlock72/MyScripts/CPUTempShutdown.sh: line 49: [: -ge: unary operator expected
/home/djsherlock72/MyScripts/CPUTempShutdown.sh: line 59: [: -ge: unary operator expected
/home/djsherlock72/MyScripts/CPUTempShutdown.sh: line 49: [: -ge: unary operator expected
/home/djsherlock72/MyScripts/CPUTempShutdown.sh: line 59: [: -ge: unary operator expected
>
Is this not running correctly or should I just ignore it?
>
Output from command /home/djsherlock72/MyScripts/DriveTempShutdown.sh 35 45 >/dev/null ..
/dev/sda: Permission denied
/home/djsherlock72/MyScripts/DriveTempShutdown.sh: line 59: [: =: unary operator expected
/home/djsherlock72/MyScripts/DriveTempShutdown.sh: line 68: [: -ge: unary operator expected
/home/djsherlock72/MyScripts/DriveTempShutdown.sh: line 79: [: -ge: unary operator expected
>
and
>
Output from command /home/djsherlock72/MyScripts/CPUTempShutdown.sh 35 45 >/dev/null ..
/home/djsherlock72/MyScripts/CPUTempShutdown.sh: line 49: [: -ge: unary operator expected
/home/djsherlock72/MyScripts/CPUTempShutdown.sh: line 59: [: -ge: unary operator expected
/home/djsherlock72/MyScripts/CPUTempShutdown.sh: line 49: [: -ge: unary operator expected
/home/djsherlock72/MyScripts/CPUTempShutdown.sh: line 59: [: -ge: unary operator expected
>
Is this not running correctly or should I just ignore it?