diff options
author | Thomas White <taw@physics.org> | 2020-09-01 16:23:40 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-09-01 16:23:40 +0200 |
commit | 045138c1e2c086864dbafe5d4dd9bd88732b88e3 (patch) | |
tree | 7b5a5d8ff78b1f228dd02adc35a190cca05867d1 | |
parent | cc9a11af67b03f18d2ec339e730f3de3a448138e (diff) |
SLURM: Store full path to stderr files
-rw-r--r-- | src/gui_backend_slurm.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui_backend_slurm.c b/src/gui_backend_slurm.c index 597c3636..870b4d5c 100644 --- a/src/gui_backend_slurm.c +++ b/src/gui_backend_slurm.c @@ -380,6 +380,7 @@ static void *run_indexing(const char *job_title, char stderr_file[128]; char stdout_file[128]; int job_id; + GFile *stderr_gfile; snprintf(job_name, 127, "%s-%i", job_title, i); snprintf(file_list, 127, "files-%i.lst", i); @@ -412,7 +413,12 @@ static void *run_indexing(const char *job_title, } job->job_ids[i] = job_id; - job->stderr_filenames[i] = strdup(stderr_file); + + stderr_gfile = g_file_get_child(workdir_file, + stderr_file); + job->stderr_filenames[i] = g_file_get_path(stderr_gfile); + g_object_unref(stderr_gfile); + STATUS("Submitted SLURM job ID %i\n", job_id); } |