According to the manual, Section 6.4. the server will send a report if a S.M.A.R.T. test Fails. Does anyone know if there is a way to get it to e-mail a copy of the text whether it fails or passes?
Copy it to a text file (use an .sh extension) on the server. Navigate to the directory it's in and run ./filename.sh
You're close: Instead of typing run SMART.sh type ./SMART.sh to execute the script ;)
If you get a permission denied it's because the file isn't executable, just type chmod +x SMART.sh and then retry to execute the script.
Also, read the Scripts basics section of the Useful scripts thread to learn more about creating scripts :)
The Unix equivalent of DIR is ls. The one closest to default DIR is ls -l.So I must have done something wrong somewhere. I was expecting a report to be e-mailed to me but I have yet to receive one. So I ran the report manually and the script still works (I just got the report) but it doesn't seem to run after each Short and Long test. So my question is what did I do wrong? A separate unrelated question relates to the old DOS command "Dir" is there an equivalent for FreeNAS? I didn't realize till now that the file names are case sensitive so when I first tried to run the scrip using lower case letters it acted like it didn't exist and I almost made the script all over again. Anyway it would have helped if I could have just seen what was in that directory (and the "dirs" command seems to be for a different function altogether.