Thanks Jeff but the log file path is at the discretion of the user, it's unlikely to be in the directory that contains the batch script (command file), or the workdir. It's also not specified in the command file as these scripts can be templates that are submitted multiple times.
On Tue, 2013-11-26 at 17:30 -0800, Jeff Tan wrote: > > Is there any way in slurm to retrieve the std_out filename from a > > running job? > > Hi Franco > > A work-around might be a script that uses the output of `scontrol show job > <jobid>` and either (1) grab the --output or -o setting from the Command > script (if available; or check the script from SlurmdSpoolDir if set in > slurm.conf) or (2) look for a slurm-<jobid>.out from the WorkDir, e.g., > > JobId=43311 Name=hello-mpi > UserId=ubuntu(1000) GroupId=ubuntu(1000)
