#!/bin/sh
#++++++++++++++++++++++++++++++++++++++++++++++++++++
#
# Script to query if the PCR_Server is running
#
#++++++++++++++++++++++++++++++++++++++++++++++++++++
#
# Written  26jul07  DLM  Started with Phil Hinz's runao script
#
#++++++++++++++++++++++++++++++++++++++++++++++++++++
#
# Check to see if the pcr_server is running.  If so, then kill it
#
running=`ps auxww | grep '\.\/pcr' | awk '{print $2}'`
if [ $running ]; then 
    echo "1"
else
    echo "0"
fi
