#! /bin/sh
################################################################################
# PROJECT:
#   LANE MACHINE USER INTERFACE
#
# FILE NAME:
#  restart
#
# PURPOSE:
#  This script kills the tcl shell and restarts it.
#
# NOTES:
#
# COPYRIGHT NOTICE:
#  Copyright 2004 All rights reserved
#  Brunswick Corp.
#  Proprietary Information
#
# REVISION HISTORY:
#     $Id: restart,v 1.3 2006/05/25 15:06:36 mmead Exp $
################################################################################

killall -9 wish


# Define the tcl/tk library path
export LD_LIBRARY_PATH=/opt/LM_GUI/lib
export PATH=$PATH:/opt/LM_GUI/scripts
export DISPLAY=:0.0

# Start the Lane Machine GUI application
cd /opt/LM_GUI/scripts

cp err.txt err1.txt
cp out.txt out1.txt

/opt/LM_GUI/lib/wish /opt/LM_GUI/scripts/main.tcl > out.txt 2> err.txt &

exit 0
