#!/bin/sh
export LD_LIBRARY_PATH=/home/SMCDev/SMC/mpp2/common/Release:/home/SMCDev/omniORB/Ubuntu/lib:/usr/local/boost/1.54.0/lib
export PATH=".:$PATH"
(

	BASE="./ServerExec -ORBInitRef NameService=corbaname::localhost"

	if [ -z "$1" ]
	then
		$BASE

	elif [ -z "$2" ]
	then
		$BASE "$1"

	elif [ -z "$3" ]
	then
		$BASE "$1" "$2"

	elif [ -z "$4" ]
	then
		$BASE "$1" "$2" "$3"

	elif [ -z "$5" ]
	then
		$BASE "$1" "$2" "$3" "$4"

	elif [ -z "$6" ]
	then
		$BASE "$1" "$2" "$3" "$4" "$5"

	elif [ -z "$7" ]
	then
		$BASE "$1" "$2" "$3" "$4" "$5" "$6"

	elif [ -z "$8" ]
	then
		$BASE "$1" "$2" "$3" "$4" "$5" "$6" "$7"

	else
		$BASE $*
	fi
)
