My pleasure. I can get really wordy sometimes but I'm glad that that style works for you.
As I mentioned above, if you want to hang on to this tutorial you should consider copying it to your local machine as this forum is being taken down in the near future (no more tips and tricks unfortunately).
Thanks!
What happens if you type the following on a command line?I'm trying to do the mail thing, and i went with the gmail thing and got it to work.
I have a problem when i try to initiate the script.
I get this errorCode:sudo ~/testContinuous.sh
Code:/home/myUserName/testContinuous.sh: line 3: mail: command not found
Code:which mail
BUT i think the script is working just fine. I keep getting mails every 5 minuttes from the server, but they are saying this.
Code:/bin/sh: 1: /usr/local/sbin/continuous.sh: Permission denied
I actually think the script is not working at all. Those emails may be from cron itself. If you set up your cron to email you whenever it encounters an error, that means that every time it tries to run the continuous.sh script it fails and then sends you an email.
The actual error you are getting is Permission denied which means that the permissions on your script are incorrect. Type the following into your shell and post back the results here:
Code:ls -l /usr/local/sbin/continuous.sh
I also get an error when trying to run this
ErrorCode:sudo ~/hddtemp_monitor.sh
I tried to google it, but i cant find anything useful.Code:/home/myUserName/hddtemp_monitor.sh: line 11: [: -ge: unary operator expected
This is similar (or maybe even identical) the issue that Philliesfan251 was having. If you read through this entire thread, you will see what I am talking about. Specifically it appears that the output of your hddtemp command is not actually outputting a pure number. Check out what he was dealing with. If you are still having issues after you read through the thread feel free to ask me more questions.
Last edited by bvz; February 16th, 2013 at 09:57 AM.
By the way to everyone who has questions. If for some reason this forum does disappear and you still need questions answered, feel free to send me a pm. You can even send me one if you post a message and I don't respond within a day or two. If I get a notice that someone has posted here and I don't open it up right away I sometimes forget to return to the forum and then I don't get any additional notifications when there are new postings.
Picture someone with crazy hair who walks around muttering to themselves with strings tied to each finger.
That's me.
I'll give it a try. One thing I am not sure about is how people ask questions about the wiki. For example if some of the folks here were having trouble with something I wrote (like they have) where would they go to ask questions. And how would I know that they asked these questions so that I could either answer them (or fix the wiki)?
I know that others can update the wiki and that makes it a community project and I am ok with that. I just wanted to know how I personally would still be able to connect with the people who are having trouble with a wiki I created.
Also, I suspect there is a tutorial on setting up/maintaining a wiki. Could you point me to it? Thanks! People on this forum have been so helpful to me I do like the idea of giving back.
What has normally occurred is the information in the OP or whatever gets moved to the wiki and a thread is created for questions/comments.
I believe there is a script out there that can help convert a forum post to wikicode, but I don't know where it is off the top of my head.
Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide
Tomorrow's an illusion and yesterday's a dream, today is a solution...
Hello,
I want to start by saying I really appreciate this thread. It has been very helpful in setting up my server. Now to my problem. I am trying to get the maintenance scripts up and working and everything works until I get to the part where I am writing test scripts. Everything is fine until I go to test the test scripts. I get this:
I tried to google for some answers but I didnt find anything helpful. I do know that msmtp is working correctly because I did an echo test email and I received the test email. Thanks for your time and the guide again.Code:/home/dylan/testContinuous.sh: line 3: mail: command not found
Are you sure you have the mailutils package installed?
Otherwise, check to make sure you are using the full path to mail.
Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide
Tomorrow's an illusion and yesterday's a dream, today is a solution...
That totally fixed it. I thought I had installed that package but I guess I didn't. Either way thanks for the tip
Bookmarks