#!/bin/csh

#---------------------------------------------------------------------
# Startup scrupt for the IcBQS server setup
#
# File: batch_queue/icbqs_serverd
#
# $Revision$ on $Date$
# 
# Copyright (c) 1993-2003 ICEM CFD Engineering
#
#---------------------------------------------------------------------

if (! $?ICEM_ACN || $?ICEM_ACN == "") then
  echo " Error: cannot set up IcBQS server setup without ICEM_ACN set! "
  exit 1
endif

echo " DEBUG: have ICEM_ACN '$ICEM_ACN' "

set setup_file = "$ICEM_ACN/lib/batch_queue/lib/icbqs_server_setup.tcl"

if (! -e $setup_file) then
    echo " Error: cannot set up IcBQS server because file '$setup_file' does not exist! "
    exit 1
endif

echo " DEBUG: have setup_file '$setup_file' "

echo tclsh "$setup_file" 
nohup tclsh "$setup_file" < /dev/null & # >& /dev/null
exit 0
