No worries, I'm not really in any rush, like I said. Here's the results. I did receive an email and the server did shut down.
frank@Server:~$ sudo nano ~/temp.sh
[sudo] password for frank:...
Type: Posts; User: Philliesfan251; Keyword(s):
No worries, I'm not really in any rush, like I said. Here's the results. I did receive an email and the server did shut down.
frank@Server:~$ sudo nano ~/temp.sh
[sudo] password for frank:...
I wasnt thinking, I tried sudo right after I posted that and it worked fine, thanks!
Here's line 10 & 11:
HDTEMP=$($HDT $disk | awk '{ print $4}' | awk -F '°' '{ print $1}')
if [...
Thanks for the reply, I just tried it and got this message:
frank@Server:~$ mdadm --monitor --scan --oneshot --no-sharing --test
sendmail: cannot log to /var/log/msmtp.log: cannot open:...
Now for this problem :P I tried that and it kind of just hung, no emails or anything, had to Ctrl+C after like 5 minutes.
This is what it does UTF-8
frank@Server:~$ sudo ~/hddtemp_monitor.sh
[sudo] password for frank:
/home/frank/hddtemp_monitor.sh: line 11: [: 32▒: integer expression expected...
Replaced that line
#!/bin/bash
HDDS="/dev/sd[a-d]"
HDT=/usr/sbin/hddtemp
LOG=/usr/bin/logger
DOWN=/sbin/shutdown
ALERT_LEVEL=1
for disk in $HDDS
do
Check the code you quoted :)
Line 10 was changed because of a previous comment somewhere in this thread that fixed another error I was getting.
frank@Server:~$ /usr/sbin/hddtemp /dev/sda | sed 's/\(.*\)://g' | awk -F '�'...
frank@Server:~$ ps -ax | grep -i mdadm
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
1079 ? Ss 0:00 /sbin/mdadm --monitor --pid-file...
How do I go about doing that?
Thank you for posting such a great guide!
I am having a problem with hddtemp and shutting down at a certain temperature. When I try to run the script sudo ~/hddtemp_monitor.sh I get the following...
I am semi-new to Linux and today I tried installing Ubuntu 10.04 x64 on my rig (which will be a dual boot) and I got the warning:
"Device /dev/sdc has a logical sector size of 2048. Not all...
They are Windows machines and I'll take a look, thanks for the help.
I did everything in this guide. Now how do I upload files to the server?
Thanks, I'll give it a try and see how it works out.
Hello, I would like to set up a home server from my old laptop which I have recently installed Ubuntu 9.10 on. I am very new to Ubuntu and don't know much about running a server. What should I do to...
I installed 9.04 the other day then realized that I only installed Wubi and wanted to install the full version, so I uninstalled it. Ever since then I can't start my computer, I get the hal.dll...
I've been looking through posts and have been Google searching and I still can't find the solution. I can't go on the Internet with my Dell Inspiron 1521 Laptop using Ubuntu 9.04. I can connect to...