#!/bin/bash
WORKDIR=$1
CMD="${@:2}"

cd $WORKDIR && ssh localhost -t "cd $WORKDIR && $CMD"
