title: How can I get detailed job run info from SLURM (e.g. like that produced for "standard output" by LSF)?
body: <p>When using <code>bsub</code> with LSF, the <code>-o</code> option gave a lot of details such as when the job started and ended and how much memory and CPU time the job took. With SLURM, all I get is the same standard output that I'd get from running a script without LSF.</p>
  
  <p>For example, given this Perl 6 script:</p>
  
  <pre><code>warn  "standard error stream";
  say  "standard output stream";
  </code></pre>
  
  <p>Submitted thus:</p>
  
  <pre><code>sbatch -o test.o%j -e test.e%j -J test_warn --wrap 'perl6 test.p6'
  </code></pre>
  
  <p>Resulted in the file <code>test.o34380</code>:</p>
  
  <pre><code>Testing standard output
  </code></pre>
  
  <p>and the file <code>test.e34380</code>:</p>
  
  <pre><code>Testing standard Error  in block &lt;unit&gt; at test.p6:2
  </code></pre>
  
  <p><BR>
  With LSF, I'd get all kinds of details in the standard output file, something like:</p>
  
  <pre><code>Sender: LSF System &lt;lsfadmin@my_node&gt;
  Subject: Job 347511: &lt;test&gt; Done
  
  Job &lt;test&gt; was submitted from host &lt;my_cluster&gt; by user &lt;username&gt; in cluster &lt;my_cluster_act&gt;.
  Job was executed on host(s) &lt;my_node&gt;, in queue &lt;normal&gt;, as user &lt;username&gt; in cluster &lt;my_cluster_act&gt;.
  &lt;/home/username&gt; was used as the home directory.
  &lt;/path/to/working/directory&gt; was used as the working directory.
  Started at Mon Mar 16 13:10:23 2015
  Results reported at Mon Mar 16 13:10:29 2015
  
  Your job looked like:
  
  ------------------------------------------------------------
  # LSBATCH: User input
  perl6 test.p6
  
  ------------------------------------------------------------
  
  Successfully completed.
  
  Resource usage summary:
  
      CPU time   :    0.19 sec.
      Max Memory :    0.10 MB
      Max Swap   :    0.10 MB
  
      Max Processes  :         2
      Max Threads    :         3
  
  The output (if any) follows:
  
  standard output stream
  
  PS:
  
  Read file &lt;test.e_347511&gt; for stderr output of this job.
  </code></pre>
  
  <p>Update:</p>
  
  <p>One or more <code>-v</code> flags to <code>sbatch</code> gives more preliminary information, but doesn't change the standard output.</p>