#!/bin/bash # Execute command on the host that has the data. H=$(storage-host) D=$(readlink -f .) if [ $H == localhost ]; then exec "$@" else exec ssh -AX $H "cd $D ; $@" fi