#!/bin/sh echo "Content-type: text/plain" echo HOME=`pwd` if [! -f "${HOME}/broadcast.jar" ]; then HOME=/home/ftponly/sinocast-radio/public_html/cgi/test cd ${HOME} fi LOGFILE=/tmp/broadcast.log echo `date`: nice ${HOME}/broadcast.sh >> ${LOGFILE} nohup nice ${HOME}/broadcast.sh >> ${LOGFILE} & # Depends on watchdog to wait until the other thread has been # in a stable stage ... echo `date`: nice ${HOME}/watchdog.sh java 20 yxu@netmite.com >> ${LOGFILE} nohup nice ${HOME}/watchdog.sh java 20 yxu@netmite.com >> ${LOGFILE} & #`whoami` ps -uwx sleep 1 cat ${LOGFILE} echo "Started"