aboutsummaryrefslogtreecommitdiff
path: root/src/gui_backend_slurm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui_backend_slurm.c')
-rw-r--r--src/gui_backend_slurm.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gui_backend_slurm.c b/src/gui_backend_slurm.c
index 985a21ea..3144d10a 100644
--- a/src/gui_backend_slurm.c
+++ b/src/gui_backend_slurm.c
@@ -93,6 +93,9 @@ static void *run_indexing(const char *job_title,
char *script;
GFile *workdir_file;
GFile *cwd_file;
+ GFile *notes_file;
+ char *notes_path;
+ FILE *fh;
workdir = strdup(job_title);
if ( workdir == NULL ) return NULL;
@@ -111,6 +114,16 @@ static void *run_indexing(const char *job_title,
cwd_file = g_file_new_for_path(".");
workdir_file = g_file_get_child(cwd_file, workdir);
+ g_object_unref(cwd_file);
+
+ notes_file = g_file_get_child(workdir_file, "notes.txt");
+ notes_path = g_file_get_path(notes_file);
+ fh = fopen(notes_path, "w");
+ fputs(job_notes, fh);
+ fclose(fh);
+ g_free(notes_path);
+ g_object_unref(notes_file);
+ g_object_unref(workdir_file);
cmdline = indexamajig_command_line(geom_filename,
"`nproc`",