how set -vx saved my sanity

So i learned something new today, which as always is a good thing. I been setting up a Hobbit server running Ubuntu to replace our big brother server that is running on a Sun V240 with Solaris. One of the new things I needed to setup was monitoring for a couple of oracle databases that our engineer wanted to keep an eye on. He had some pre-made scripts that they used when he was with the IS group for their Big Brother setup and we were just going to port them over to our hobbit setup. Well after i tweaked the script to work with how hobbit client is configured. I noticed that one of the variables was getting set to nothing and it jacking up the rest of the script. I spent a good day and a half to figure what the hell was going on. I was at the point of just making my own monitoring script using perl to report back to the hobbit server. So in desperation I asked my buddy if by chance i was missing something stupid. I gave him a copy of what i had and he said to stick set -xv at the top of it and watch it run. He said it will output everything its doing and it should help catch whats going on. Sho nuff I added that little sucker to the top of the script and ran that bitch. Within a couple of minutes i realized what was going on and fixed the problem. Now we just need to figure out why the stupid thing is not connecting to the oracle instance like it should, which is going to be the job of the engineer.

So in short, when your shell script is screwing and you don’t know why, add that little puppy and it should help you debug it. I know this more then likely something that is really stupid and obvious, but hey I didn’t know and now I do.

Blog | No Comments

some site updates

I did some site updates recently. I upgraded to wordpress 2.2, if you haven’t upgraded yet then you should. I also grabbed a new theme from the wordpress themes site. I been using the Rin theme for a long time now and its time for a change. I like this one better and plan on sticking with it for awhile till I get around to making my own (HA right!)

Blog | 2 Comments

Life dump

So yea, I have updated in awhile. I really need to start writing more, but things get to crazy and time just seems to disappear. Like I can’t believe May is almost over, it seemed like it was yesterday that Amanda graduated from Med School. Here are some highlights of things that are going in lately..

House

Amanda and I are in the process of building a house. I didn’t realize the amount of work that goes into it. We are on the final stretch of getting everything in for the construction loan. Hopefully it will go through here quick and we can break ground. I can’t wait to get out of this hell hole of an apartment.

Hockey

Sabres got defeated in the third round of the playoffs. In a way I was kind of bummed that we didnt make it to the cup, but on the other had they had a hell of a season and I cant wait till it starts back up this year.

That’s about it for now, hopefully I’ll start writing some more and keeping this site more current.

Blog | No Comments

Amanda is now a doctor!

Amanda finally graduated from med school and is now a doctor!! After four years of hard work she is finally done! She will be doing emergency medicine and her residency doesn’t start till June 15th. I am both proud and happy for her that she was able to accomplish what not alot of people can.

Blog | No Comments