#! /bin/sh # Args: DIR command cd "$1" CMD="$2" shift shift exec $CMD "$@"