You can get it using scontrol show job or from the perl api which is what we 
do. It would be useful to set an environment variable and include the partition 
name too...   please.

On 17 Jan 2014 22:46, Moe Jette <[email protected]> wrote:

A copy of the batch script is sent to the compute node. Its path is
not preserved. The reasons for moving around a copy of the file are:
1) There may not be a file (e.g. "sbatch --wrap "hostname" ...")
2) The script may be on a file system not accessible from the compute
node (e.g. a local /tmp file)



Quoting Ulf Markwardt <[email protected]>:

> Dear Slurm experts,
>
> is it possible to access the complete path of the submission script?
> We see that this does not work...
>
> #!/bin/bash
> #SBATCH --nodes=1
> #SBATCH --tasks-per-node=1
> # go to dir where this file is in
> cd `dirname $0`
> # do this or that...
>
> ...because the script is moved to a different location.
>
> Does that mean we have lost the path of the original script if it is
> NOT in the current work directory?
>
> Thank you,
> Ulf
>
> --
> ___________________________________________________________________
> Dr. Ulf Markwardt
>
> Technische Universität Dresden
> Center for Information Services and High Performance Computing (ZIH)
> 01062 Dresden, Germany
>
> Phone: (+49) 351/463-33640      WWW:  http://www.tu-dresden.de/zih
>
>


________________________________


This email and any files transmitted with it are confidential and are intended 
solely for the use of the individual or entity to whom they are addressed. If 
you are not the original recipient or the person responsible for delivering the 
email to the intended recipient, be advised that you have received this email 
in error, and that any use, dissemination, forwarding, printing, or copying of 
this email is strictly prohibited. If you received this email in error, please 
immediately notify the sender and delete the original.

Reply via email to