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