Create directory for log file before calling slurm sbatch
问题 Slurm sbatch directs stdout and stderr to the files specified by the -o and -e flags, but fails to do so if the filepath contains directories that don't exist. Is there some way to automatically make the directories for my log files? Manually creating these directories each time is inefficient because I'm running each sbatch submission dozens of times. Letting the variation over job names exist in filenames rather than directories makes for a huge, poorly organized mess of logs I have to sort