some Ruby Bash Code I wrote for start scripts