#!/bin/sh # a shell script to start CalcServer echo "terminate CALCServer that is currently running on" `hostname` killall CalcServer echo "reset environment variables for CALCServer" export CALC_USER=C export WET_ATM=Y export JPLEPH=@prefix@/share/CalcServer/JPLEPH export SERVERLOG=ON export HORIZONS_FILENAME=@prefix@/share/CalcServer/Horizons.lis export HORIZONS_SRCNAME=TSTCURVE pushd /tmp echo "starting new CalcServer on" `hostname` @prefix@/bin/CalcServer > /dev/null & echo "checking that the CalcServer responds" sleep 1 echo " " @prefix@/bin/checkCalcServer `hostname` popd