Re: [slurm-users] prolog not passing env var to job

2021-03-04 Thread Chin,David
My mistake - from slurm.conf(5): SrunProlog runs on the node where the "srun" is executing. i.e. the login node, which explains why the directory is not being created on the compute node, while the echos work. -- David Chin, PhD (he/him) Sr. SysAdmin, URCF, Drexel dw...@drexel.edu

Re: [slurm-users] prolog not passing env var to job

2021-03-04 Thread Chin,David
lurm-users on behalf of Brian Andrus Sent: Thursday, March 4, 2021 13:48 To: slurm-users@lists.schedmd.com Subject: Re: [slurm-users] prolog not passing env var to job External. I think it isn't running how you think or there is something not provided in the description. You ha

Re: [slurm-users] prolog not passing env var to job

2021-03-04 Thread Brian Andrus
--- *From:* slurm-users on behalf of Brian Andrus *Sent:* Thursday, March 4, 2021 10:12 *To:* slurm-users@lists.schedmd.com *Subject:* Re: [slurm-users] prolog not passing env var to job External. It seems to me, if you are using srun directly to get an interactive shell, you c

Re: [slurm-users] prolog not passing env var to job

2021-03-04 Thread Chin,David
215.571.4335 (o) For URCF support: urcf-supp...@drexel.edu https://proteusmaster.urcf.drexel.edu/urcfwiki github:prehensilecode From: slurm-users on behalf of Brian Andrus Sent: Thursday, March 4, 2021 10:12 To: slurm-users@lists.schedmd.com Su

Re: [slurm-users] prolog not passing env var to job

2021-03-04 Thread Brian Andrus
b:prehensilecode *From:* slurm-users on behalf of mercan *Sent:* Friday, February 12, 2021 16:27 *To:* Slurm User Community List ; Herc Silverstein ; slurm-us...@schedmd.com *Subject:* Re: [slurm-users] prolog not passing env var to job External. Hi; Prolog and TaskProlog are different parame

Re: [slurm-users] prolog not passing env var to job

2021-03-03 Thread Chin,David
urm-us...@schedmd.com Subject: Re: [slurm-users] prolog not passing env var to job External. Hi; Prolog and TaskProlog are different parameters and scripts. You should use the TaskProlog script to set env. variables. Regards; Ahmet M. Drexel Internal Data

Re: [slurm-users] prolog not passing env var to job

2021-02-12 Thread Herc Silverstein
Thanks to everyone who replied!  It's working now. I had to make a number of changes 1. set the env vars in the TaskProlog so that they are exported to the job/task  (I just had assumed that even though the Prolog is run under root and not the user id of the job that it would still end up pass

Re: [slurm-users] prolog not passing env var to job

2021-02-12 Thread Brian Andrus
Your prolog script is run by/as the same user as slurmd, so any environment variables you set there will not be available to the job being run. See: https://slurm.schedmd.com/prolog_epilog.html for info. Brian Andrus On 2/12/2021 1:27 PM, mercan wrote: Hi; Prolog and TaskProlog are differe

Re: [slurm-users] prolog not passing env var to job

2021-02-12 Thread mercan
Hi; Prolog and TaskProlog are different parameters and scripts. You should use the TaskProlog script to set env. variables. Regards; Ahmet M. 13.02.2021 00:12 tarihinde Herc Silverstein yazdı: Hi, I have a prolog script that is being run via the slurm.conf Prolog= setting.  I've verifie

Re: [slurm-users] prolog not passing env var to job

2021-02-12 Thread Sarlo, Jeffrey S
In our taskprolog file we have something like #!/bin/sh echo export SCRATCHDIR=/scratch/${SLURM_JOBID} From: slurm-users on behalf of Herc Silverstein Sent: Friday, February 12, 2021 3:12 PM To: slurm-us...@schedmd.com Subject: [slurm-users] prolog not passin