diff --git a/resume.sh b/resume.sh index 5164343..b323175 100755 --- a/resume.sh +++ b/resume.sh @@ -10,7 +10,10 @@ then fi source params.sh +NAME="${1}" + # The user is required to specify port +echo "ssh ${RESOURCE} squeue --name=$NAME --user=$USERNAME -o "%N" -h" MACHINE=`ssh ${RESOURCE} squeue --name=$NAME --user=$USERNAME -o "%N" -h` ssh -L $PORT:localhost:$PORT ${RESOURCE} ssh -L $PORT:localhost:$PORT -N $MACHINE &