Archives – April 6, 2006

Commencement Ceremony

My graduation ceremony is set on Sunday, June 11, 2006. I have not yet purchased my cap, gown and tassel as they are available for purchse starting April 27. The engineering grads stole is orange in color. I am planning to purchase the honor stole and cord as well. I am probably allowed to only wear 1 stole and maybe several cords during the commencement. Therefore I am still considering on which to purchase. If I am to get from TBP, they look like below:

* WPG2 Plugin Not Validated *
* WPG2 Plugin Not Validated *

When I looked at the TBP stole, it looks a little funny or maybe not. It is white and triangular in shape. Maybe I will not wear that stole and wear the stole shown below from HKN instead. The other set will be from HKN, and they look like below:

* WPG2 Plugin Not Validated *
* WPG2 Plugin Not Validated *

I like the looks of the cord from TBP and both the stole and cord from HKN. I have to make my decision really soon to place an order for the stoles and cords. Because I am adviced that if I am to order early, they will arrive in time. I am considering to order all of them and just wore the ones that I like. I am also considering the GoldenKey Medallion and Ribbon. Oh.. is this too much of a graduation accessories :P

2 Comments April 6, 2006

Autostart your Shoutcast Server

I have not been using shoutcast for long. But here is the unix shell script to autostart your shoutcast server or any other services once it is down. First create a blank file on your shell command like this

touch autostart-shoutcast

Then use your favorite text editor program such as nano, pico or vi and insert the following unix shell script:

#!/usr/bin/perl

@a=qx{ps x | grep -i shoutcast-radio};
$b=1;

foreach (@a) {
  if ($_ =~ /grep/) {
  $_ =~ s/.*/blah/g;
  }
  if ($_ =~ /shoutcast-radio/) {$b=0;}
}

if ($b == 1) {
  print “Starting up\n”;
  qx{cd ~/shoutcast/ ; ./shoutcast-radio &> /dev/null &};
}

Make sure it is executable, using the chmod command like below:

chmod 755 autostart-shoutcast

Finally setup your crontab like below:

0,10,20,30,40,50 * * * * /home/shoutcast/autostart-shoutcast &> /dev/null

Leave a Comment April 6, 2006


 

April 2006
M T W T F S S
« Nov   May »
 12
3456789
10111213141516
17181920212223
24252627282930

Pages

Blogroll

Categories