Skip to content

Commit

Permalink
Merge pull request #46 from n0-computer/arqu/log_cmd
Browse files Browse the repository at this point in the history
feat: add cmd printing to jobs
  • Loading branch information
Frando authored Nov 17, 2023
2 parents aed9fef + 13ed288 commit e5d72a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions netsim/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e5d72a1

Please sign in to comment.