diff options
-rw-r--r-- | rumba/storyboard.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rumba/storyboard.py b/rumba/storyboard.py index bbb1946..26e91fd 100644 --- a/rumba/storyboard.py +++ b/rumba/storyboard.py @@ -412,9 +412,10 @@ class StoryBoard: for (x, t) in self.commands_list.items()}) self.start_time = time.time() - script = r'nohup "$@" > /dev/null & echo "$!"' + script = r'logname="$1"; shift; nohup "${@}" ' \ + r'> /tmp/${logname}.rumba.log 2>&1 & echo "$!"' + logger.debug("Writing utility startup script on client nodes.") for node in self.client_nodes: - logger.debug("Writing utility startup script on client nodes.") node.execute_command( "echo '%s' > startup.sh && chmod a+x startup.sh" % (script,) ) |