#!/bin/sh
#++++++++++++++++++++++++++++++++++++++++++++++++++++
#
# Script to start the PCR on the requested machine
#
#++++++++++++++++++++++++++++++++++++++++++++++++++++
#
# Written  10jul07  DLM  Started with Phil Hinz's runao script
#
#++++++++++++++++++++++++++++++++++++++++++++++++++++
#
# Check to see if a hostname was given.  If not, use "localhost"
#
if [[ $1 != "" ]]; then
    pcr_server_host=$1
else
    pcr_server_host="localhost"
fi
#
# add username pcr
#
if [[ $pcr_server_host == ao-pcr.mmto.arizona.edu ]]; then
#
# Special startup for pcr on ao-pcr (no log file created)
#
    pcr_server_host="mmtao@ao-pcr.mmto.arizona.edu"
    ssh -XYCq $pcr_server_host xterm -geometry 70x10+839+693 +hold -sb -sl 500 -title "DDS" -e "local_dds_ao-pcr" &

else
#
# Start the PCR Server on the specified host
#
    ssh -XYCq $pcr_server_host xterm -geometry 70x10+839+693 +hold -sb -sl 500 -title "DDS" -e "local_dds_ao-pcr" &
fi
