projects
/
gnt-info
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c908e8e
)
create /dev/shm/instance, fix domain
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 25 Jul 2018 14:00:52 +0000
(16:00 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 25 Jul 2018 14:00:52 +0000
(16:00 +0200)
gnt-vnc.sh
patch
|
blob
|
history
diff --git
a/gnt-vnc.sh
b/gnt-vnc.sh
index
1b30fa2
..
be8237e
100755
(executable)
--- a/
gnt-vnc.sh
+++ b/
gnt-vnc.sh
@@
-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/"