> Is there any way to know that James server is running or > if its not running then anyway to know that? say like when
Look at phoenix.sh: in the start procedure it checks for the James_pid and check wether the process is running before starting james. PRGDIR=`dirname "$THIS_PROG"` PHOENIX_HOME=`cd "$PRGDIR/.." ; pwd` if [ -z "$PHOENIX_TMPDIR" ] ; then # Define the java.io.tmpdir to use for Phoenix PHOENIX_TMPDIR="$PHOENIX_HOME"/temp mkdir -p "$PHOENIX_TMPDIR" fi if [ -z "$PHOENIX_PID" ] then PHOENIX_PID="$PHOENIX_TMPDIR/phoenix.pid" fi if [ -f $PHOENIX_PID ] then if ps -p `cat $PHOENIX_PID ` >/dev/null 2>/dev/null then echo "Already Running!!" exit 1 fi fi PS: do not crosspost, please. Stefano --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]