#!/bin/sh
#
# @file run.sh
# @brief SimpleIO example startup script
# @date $Date: 2007/04/27 06:12:58 $
#
# Copyright (c) 2003-2007 Noriaki Ando <n-ando@aist.go.jp>
#          Task-intelligence Research Group,
#          Intelligent System Research Institute,
#          National Institute of Industrial Science (AIST), Japan
#          All rights reserved.
#
# Edit
#          Satofumi KAMIMURA
#
# $Id: run.sh,v 1.4 2007/04/27 06:12:58 n-ando Exp $
#

nsport='9876'
hostname=`hostname`


term=`which kterm`

if test "x$term" = "x" ; then
    term=`which xterm`
fi

if test "x$term" = "x" ; then
    term=`which uxterm`
fi

if test "x$term" = "x" ; then
    term=`which gnome-terminal`
fi

if test "x$term" = "x" ; then
    echo "No terminal program (kterm/xterm/gnome-terminal) exists."
    exit
fi

rtm-naming $nsport

echo 'corba.nameservers: '$hostname':'$nsport > ./rtc.conf
echo 'naming.formats: %n.rtc' >> ./rtc.conf
echo 'logger.log_level: TRACE' >> ./rtc.conf

$term -e ./UrgDeviceComp &
sleep 1
$term -e ./UrgHandlerCsvComp &

#sleep 3
#./ConnectorComp &
gdb ./ConnectorComp

#sleep 10
#$nspid=`ps -ax | grep 9876 | awk '{print $1}'`
#kill $nspid
#echo 'Naming service was stopped.'


Generated on Mon Dec 3 08:54:28 2007 by  doxygen 1.5.3