Yes, Im new to the socket stuff so this is going to be a challenge.

Situation: On a irc shell there is a process that creates/updates a channel list for our Java and Webtv users. At times this process hangs up. So I have to login to the shell and issue a ./restart to restart it.

Goal: when the process hangs up, login to the shell, invoke the ./restart

Note: I have a socket routine now that check the a 'Last update' line in channels.php. This will tell me if the procces has hung up.