#~/bin/bash
if [ $(cat sshstatus) ]
then
  laststatus=$(cat sshstatus)
else
  laststatus=0
fi

if [ $laststatus == 0  ]
then
    ssh "$@"
    status=$?
    echo "$status" > sshstatus 

else
    echo "Server skipped"
fi
