#!/bin/bash if [ "$ARQROOT" == "" ] then echo "ARQROOT not set" 1>&2 exit 1 fi ARQ_CMD=$(basename $0) exec "${ARQROOT}/bin/${ARQ_CMD}" "$@"