#!/bin/bash # Usage: # cd /where/this/script/is # Then, if you terminal session is reliably long-lived: # ./r # or, for optimum robustness (e.g. over VPN): # nohup ./r < /dev/null > /dev/null 2>&1 & # log=log.reset_sdp $PWD/reset_sdp.sh > $log 2>&1 echo EXIT_CODE=$? >> $log cat $log