title: Is it possible to configure the directory for sbatch's default output file?
body: <p>Is there some way to configure an alternative default directory (other than the current directory) for <code>sbatch</code> to put the file <code>slurm-%j.out</code> (or <code>slurm-%A_%a.out</code>) that it generates when the <code>-o</code> is not specified?</p>
  
  <p>My goals here are to have a convenient/low-maintenance way to</p>
  
  <ol>
  <li>consolidate all default output files generated by <code>sbatch</code> in one place; and</li>
  <li>avoid cluttering the current directory with such files.</li>
  </ol>
  
  <p>I had hoped to find something like a <code>SLURM_DEFAULT_OUTPUT_DIRECTORY</code> environment variable to take care of this, but if there is such a variable, I managed to miss it.</p>
  
  <p>Is there some other mechanism to achieve the desired results?</p>
  
  <hr>
  
  <p>(FWIW, the only precedent that comes to mind for the functionality I'm after is Emacs's <code>backup-directory-alist</code>, which tells Emacs were to put the backup files it generates by default.  This feature is more sophisticated than what I'm after, because it supports multiple such directories, to be used according to patterns in the original filenames.)</p>