#!/bin/sh
export LD_LIBRARY_PATH=/home/SMCDev/SMC/mpp2/common/zzDebug6.0.0:/home/SMCDev/omniORB/zzUbuntu6.0.0/lib:/usr/local/boost/1.46.1/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
)
