Add 'x' command to open an X11 tunnel (and run a client)

fixes #142
This commit is contained in:
Bob Lantz
2013-05-28 22:10:27 -07:00
parent f53866d0c0
commit e3d07bc1a0
2 changed files with 18 additions and 1 deletions
+6
View File
@@ -52,6 +52,12 @@ def makeTerm( node, title='Node', term='xterm', display=None ):
term = node.popen( cmds[ term ] + [ display, '-e', 'env TERM=ansi bash'] )
return [ tunnel, term ] if tunnel else [ term ]
def runX11( node, cmd ):
"Run an X11 client on a node"
display, tunnel = tunnelX11( node )
popen = node.popen( cmd )
return [ tunnel, popen ]
def cleanUpScreens():
"Remove moldy socat X11 tunnels."
errRun( "pkill -9 -f mnexec.*socat" )