Skip to content
Snippets Groups Projects
Commit 74aabbca authored by Danny Auble's avatar Danny Auble
Browse files

BGQ - added option for --launch-cmd (not really useful, but it was easy,

and perhaps someone might find it useful).
parent 61d6d537
No related branches found
No related tags found
No related merge requests found
......@@ -380,6 +380,16 @@ extern int launch_p_create_job_step(srun_job_t *job, bool use_all_cpus,
void (*signal_function)(int),
sig_atomic_t *destroy_job)
{
if (opt.launch_cmd) {
int i = 0;
char *cmd_line = NULL;
while (opt.argv[i])
xstrfmtcat(cmd_line, "%s ", opt.argv[i++]);
printf("%s\n", cmd_line);
xfree(cmd_line);
exit(0);
}
return launch_common_create_job_step(job, use_all_cpus,
signal_function,
destroy_job);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment