From 13ed288b559ceadcad91e077bbefd131f7255a31 Mon Sep 17 00:00:00 2001 From: Asmir Avdicevic Date: Fri, 17 Nov 2023 09:24:49 +0000 Subject: [PATCH] feat: add cmd printing to jobs --- netsim/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/netsim/main.py b/netsim/main.py index c8ae8a5..68ae15c 100644 --- a/netsim/main.py +++ b/netsim/main.py @@ -109,6 +109,8 @@ def run(nodes, prefix, args, debug=False, full_debug=False, visualize=False): temp_dirs.append(temp_dir) env_vars['IROH_DATA_DIR'] = '{}'.format(temp_dir) + f.write('cmd: %s\n\n' % cmd) + f.flush() p = n.popen(cmd, stdout=f, stderr=f, shell=True, env=env_vars) if 'process' in node and node['process'] == 'short': p_short_box.append(p)