SWERROR=99
if [ $# = 3 ]
then
	/bin/sh $2 $1 $3 >> $3 2>&1
	rc=$?
elif [ $# = 4 ]
then
	/bin/sh $2 $1 $3 $4 >> $4 2>&1
	rc=$?
else 
	exit $SWERROR
fi
exit $rc
