Commit 7227d0c5 authored by Lukas Weber's avatar Lukas Weber

run commands in shell to make segfaults visible to the user

parent a4521853
......@@ -64,9 +64,9 @@ def run():
job_input_filename = job.write_job_input_file()
if args_run.single:
cmd = [job.jobconfig['mc_binary'], 'single', job_input_filename]
print('$ '+' '.join(cmd))
subprocess.run(cmd)
cmd = '{} single "{}"'.format(job.jobconfig['mc_binary'], job_input_filename)
print('$ '+cmd)
subprocess.run(cmd, shell=True)
else:
clusterutils.run(job.jobname, job.jobconfig, [job.jobconfig['mc_binary'], job_input_filename])
......@@ -84,9 +84,9 @@ def delete():
def merge():
job_input_filename = job.write_job_input_file()
cmd = [job.jobconfig['mc_binary'], 'merge', job_input_filename]
print('$ '+' '.join(cmd))
subprocess.run(cmd)
cmd = '{} merge "{}"'.format(job.jobconfig['mc_binary'], job_input_filename)
print('$ '+cmd)
subprocess.run(cmd, shell=True)
def status():
from loadleveller import jobstatus
......
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