#!/bin/sh
#
# Run a routing spec
#
# Usage: rs <specname>
#

#
# Arguments are passed this way to preserve the grouping. Example. Need to
# prevents  -S 'now - 1 day' from being passed as 5 separate args.
#
SCRIPT=$(readlink -f "$0")
# Absolute path this script is in, thus /home/user/bin
APP_PATH=$(dirname "$SCRIPT")

cmd="${APP_PATH}/decj decodes.routing.RoutingSpecThread "
for a
do
	cmd=`echo $cmd \"$a\"`
done
eval $cmd
