From 109cf4561122ef2472f4aa1279b5d6a8366f95d8 Mon Sep 17 00:00:00 2001 From: "Peter W. Draper" <p.w.draper@durham.ac.uk> Date: Tue, 30 Oct 2018 11:58:10 +0000 Subject: [PATCH] Add warning that command is a security concern, make sure output is not mixed with any from the MPI process --- examples/main.c | 5 ++++- examples/parameter_example.yml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/main.c b/examples/main.c index 8e9ee1e05c..223b20e95f 100644 --- a/examples/main.c +++ b/examples/main.c @@ -1241,8 +1241,11 @@ int main(int argc, char *argv[]) { /* Did we want to run a re-submission command just before dying? */ if (myrank == 0 && resubmit) { - message("Running the resubmission command."); + message("Running the resubmission command:"); restart_resubmit(resubmit_command); + fflush(stdout); + fflush(stderr); + message("resubmission command completed."); } /* Clean everything */ diff --git a/examples/parameter_example.yml b/examples/parameter_example.yml index 05102e8a94..16fa911e5e 100644 --- a/examples/parameter_example.yml +++ b/examples/parameter_example.yml @@ -123,7 +123,7 @@ Restarts: stop_steps: 100 # (Optional) how many steps to process before checking if the <subdir>/stop file exists. When present the application will attempt to exit early, dumping restart files first. max_run_time: 24.0 # (optional) Maximal wall-clock time in hours. The application will exit when this limit is reached. resubmit_on_exit: 0 # (Optional) whether to run a command when exiting after the time limit has been reached. - resubmit_command: ./resub.sh # (Optional) Command to run when time limit is reached. Compulsory if resubmit_on_exit is switched on. + resubmit_command: ./resub.sh # (Optional) Command to run when time limit is reached. Compulsory if resubmit_on_exit is switched on. Note potentially unsafe. # Parameters governing domain decomposition DomainDecomposition: -- GitLab