Commit 51cfbec7 authored by Julien Muchembled's avatar Julien Muchembled

demo: print executed command when re6stnet crashes

This is then easier to restart it manually.
parent 3ada47f8
...@@ -46,7 +46,8 @@ for name in """internet=I registry=R ...@@ -46,7 +46,8 @@ for name in """internet=I registry=R
node._screen = node.Popen((SCREEN, '-DmS', name)) node._screen = node.Popen((SCREEN, '-DmS', name))
node.screen = (lambda name: lambda *cmd: node.screen = (lambda name: lambda *cmd:
subprocess.call([SCREEN, '-r', name, '-X', 'eval'] + map( subprocess.call([SCREEN, '-r', name, '-X', 'eval'] + map(
"screen sh -c '%s; exec $SHELL'".__mod__, cmd)))(name) """screen sh -c 'set %s; "\$@"; echo "\$@"; exec $SHELL'"""
.__mod__, cmd)))(name)
# create switch # create switch
switch1 = nemu.Switch() switch1 = nemu.Switch()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment