<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: "Courier New", monospace;">ahmet.mercan@uhem.itu.edu.tr wrote:</span></div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: "Courier New", monospace;">> </span><span style="font-family: "Courier New", monospace; font-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !important;">Prolog and TaskProlog are different parameters and scripts.
 You should</span><br>
<span style="font-family: "Courier New", monospace; font-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !important;">> use the TaskProlog script to set env. variables.</span></div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: "Courier New", monospace; font-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !important;"><br>
</span></div>
<div style="font-family: "Courier New", monospace; color: rgb(0, 0, 0);"><span style="font-size: 14.6667px;">Can you tell me how to do this for srun? E.g. users request an interactive shell:</span></div>
<div style="font-family: "Courier New", monospace; color: rgb(0, 0, 0);"><span style="font-size: 14.6667px;"><br>
</span></div>
<div style="font-family: "Courier New", monospace; color: rgb(0, 0, 0);"><span style="font-size: 14.6667px;">    srun -n 1 -t 600 --pty /bin/bash</span></div>
<div style="font-family: "Courier New", monospace; color: rgb(0, 0, 0);"><span style="font-size: 14.6667px;"><br>
</span></div>
<div style="font-family: "Courier New", monospace; color: rgb(0, 0, 0);"><span style="font-size: 14.6667px;">but the shell on the compute node does not have the env variables set.</span></div>
<div style="font-family: "Courier New", monospace; color: rgb(0, 0, 0);"><span style="font-size: 14.6667px;"><br>
</span></div>
<div style="font-family: "Courier New", monospace; color: rgb(0, 0, 0);"><span style="font-size: 14.6667px;">I use the same prolog script as TaskProlog, which sets it properly for jobs submitted</span></div>
<div style="font-family: "Courier New", monospace; color: rgb(0, 0, 0);"><span style="font-size: 14.6667px;">with sbatch.</span></div>
<div style="font-family: "Courier New", monospace; color: rgb(0, 0, 0);"><span style="font-size: 14.6667px;"><br>
</span></div>
<div style="font-family: "Courier New", monospace; color: rgb(0, 0, 0);"><span style="font-size: 14.6667px;">Thanks in advance,</span></div>
<div style="font-family: "Courier New", monospace; color: rgb(0, 0, 0);"><span style="font-size: 14.6667px;">    Dave Chin</span></div>
<div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div></div>
<div></div>
<div></div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:'Courier New',monospace">
<div class="BodyFragment"><font size="2"><span style="font-size:10pt">
<div class="PlainText"></div>
<div class="PlainText" style="font-family:"Courier New",monospace; font-size:13.3333px">
</div>
<span id="ms-rterangepaste-start"></span>
<div>--</div>
<div>
<div>David Chin, PhD (he/him)   Sr. SysAdmin, URCF, Drexel</div>
<div>dwc62@drexel.edu                     215.571.4335 (o)</div>
<div>For URCF support: urcf-support@drexel.edu</div>
<div>https://proteusmaster.urcf.drexel.edu/urcfwiki</div>
<div>github:prehensilecode</div>
</div>
<span id="ms-rterangepaste-end"></span>
<div class="PlainText"><br>
</div>
</span></font></div>
</div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<div style="font-family:"Courier New",monospace; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> slurm-users <slurm-users-bounces@lists.schedmd.com> on behalf of mercan <ahmet.mercan@uhem.itu.edu.tr><br>
<b>Sent:</b> Friday, February 12, 2021 16:27<br>
<b>To:</b> Slurm User Community List <slurm-users@lists.schedmd.com>; Herc Silverstein <herc.silverstein@schrodinger.com>; slurm-users@schedmd.com <slurm-users@schedmd.com><br>
<b>Subject:</b> Re: [slurm-users] prolog not passing env var to job</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">External.<br>
<br>
Hi;<br>
<br>
Prolog and TaskProlog are different parameters and scripts. You should<br>
use the TaskProlog script to set env. variables.<br>
<br>
Regards;<br>
<br>
Ahmet M.<br>
<br>
<br>
</div>
</span></font></div>
<br>
<p style="font-family:Calibri;font-size:10pt;color:#000000;margin:5pt;" align="Left">
Drexel Internal Data<br>
</p>
</body>
</html>