Entries Tagged as 'linux'

Wednesday, May 13th, 2009

Capturing Uncaught Java Exceptions in a Bash Shell Script

I was burned one to many times by chaining dependent java programs together in a bash script.
By default the java executable will return zero if the program exited manually, and 1 if there was an uncaught RuntimeException.
Let's say test.sh runs a java program, we want to run it 3 times, but if it fails during [...]

Monday, September 17th, 2007

Killing a process by name in ubuntu

I have to kill mongrel alot because it's a flea-bitten mutt.
My usual method was to do a ps -aux | grep mongrel , find the pid and kill it!
Annoying and stupid!
Now I just use the nice pkill tool in ubuntu like so.
pkill mongrel
boom! All bad doggies killed! This probably works on other *nix flavors, but [...]

Sunday, July 22nd, 2007

Java App Empty Window under Compz-Fusion / Beryl

This weekend I was playing around with Ubuntu 7.04 and Compiz-Fusion, I didn't have any major problems until I tried to get Oracle SQL Developer and Aqua Data Studio to work, they would start up but no interface would be drawn.
Well the problem is that they were trying to figure out the Window Manager for [...]

Monday, July 9th, 2007

Great Alternative Oracle Site

During the last week or so I've been going through the process of setting up an Oracle 10g database on CentOS 4.5. Rather than relying on the toads at OTN or the raving throngs of confusion at the oracle.com forums for advice. I learned everything I needed to know at Dizwell Informatics. It's the site [...]