create /dev/shm/instance, fix domain
[gnt-info] / gnt-vnc.sh
index 1b30fa2..be8237e 100755 (executable)
@@ -1,4 +1,4 @@
 #!/bin/sh -e
 
-gnt-instance info $1 | grep 'console connection:' | tr -d '()' | tr ':' ' ' | awk '{ print "ssh -L "$6":"$5":"$6" "$8"\nvncviewer localhost:"$10 }'
+gnt-instance info $1 | tee /dev/shm/$1 | grep 'console connection:' | tr -d '()' | tr ':' ' ' | awk '{ print "ssh -L "$6":"$5":"$6" "$8"\nvncviewer localhost:"$10 }' | sed "s/\.gnt\.ffzg\.hr/.net.ffzg.hr/"