change_port 214 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 #!/bin/sh ##### CHANGE IOSIM_PORT ######## if [ -f port ]; then port=`cat port` else port=7012 fi export IOSIM_SERVER=127.0.0.1 port=`expr $port + 1` IOSIM_PORT=$port export IOSIM_PORT echo "$port" > port