projects
/
gnt-info
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
198dac2
)
display vnc connection info over ssh for instance
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 7 Nov 2017 07:32:30 +0000
(08:32 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 7 Nov 2017 07:32:30 +0000
(08:32 +0100)
gnt-vnc.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/gnt-vnc.sh
b/gnt-vnc.sh
new file mode 100755
(executable)
index 0000000..
1b30fa2
--- /dev/null
+++ b/
gnt-vnc.sh
@@ -0,0
+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 }'
+