Skip to content

Commit

Permalink
deploy: 70fe03c
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinp0 committed Dec 14, 2023
1 parent c3fd819 commit 0bac8e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _modules/arc/job/local.html
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ <h1>Source code for arc.job.local</h1><div class="highlight"><pre>
<span class="n">job_status</span><span class="p">,</span> <span class="n">job_id</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">,</span> <span class="s1">&#39;&#39;</span>
<span class="n">submit_cmd</span> <span class="o">=</span> <span class="n">submit_cmd</span> <span class="ow">or</span> <span class="n">submit_command</span><span class="p">[</span><span class="n">cluster_soft</span><span class="p">]</span>
<span class="n">submit_filename</span> <span class="o">=</span> <span class="n">submit_filename</span> <span class="ow">or</span> <span class="n">submit_filenames</span><span class="p">[</span><span class="n">cluster_soft</span><span class="p">]</span>
<span class="n">cmd</span> <span class="o">=</span> <span class="sa">f</span><span class="s2">&quot;cd </span><span class="si">{</span><span class="n">path</span><span class="si">}</span><span class="s2">; </span><span class="si">{</span><span class="n">submit_cmd</span><span class="si">}</span><span class="s2"> </span><span class="si">{</span><span class="n">submit_filename</span><span class="si">}</span><span class="s2">&quot;</span>
<span class="n">cmd</span> <span class="o">=</span> <span class="sa">f</span><span class="s1">&#39;cd &quot;</span><span class="si">{</span><span class="n">path</span><span class="si">}</span><span class="s1">&quot;; </span><span class="si">{</span><span class="n">submit_cmd</span><span class="si">}</span><span class="s1"> </span><span class="si">{</span><span class="n">submit_filename</span><span class="si">}</span><span class="s1">&#39;</span>
<span class="n">stdout</span><span class="p">,</span> <span class="n">stderr</span> <span class="o">=</span> <span class="n">execute_command</span><span class="p">(</span><span class="n">cmd</span><span class="p">)</span>
<span class="k">if</span> <span class="ow">not</span> <span class="nb">len</span><span class="p">(</span><span class="n">stdout</span><span class="p">):</span>
<span class="n">time</span><span class="o">.</span><span class="n">sleep</span><span class="p">(</span><span class="mi">10</span><span class="p">)</span>
Expand Down Expand Up @@ -554,7 +554,7 @@ <h1>Source code for arc.job.local</h1><div class="highlight"><pre>
<span class="k">if</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">isfile</span><span class="p">(</span><span class="n">path</span><span class="p">):</span>
<span class="n">path</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">dirname</span><span class="p">(</span><span class="n">path</span><span class="p">)</span>
<span class="n">recursive</span> <span class="o">=</span> <span class="s1">&#39; -R&#39;</span> <span class="k">if</span> <span class="n">recursive</span> <span class="k">else</span> <span class="s1">&#39;&#39;</span>
<span class="n">command</span> <span class="o">=</span> <span class="p">[</span><span class="sa">f</span><span class="s1">&#39;cd </span><span class="si">{</span><span class="n">path</span><span class="si">}</span><span class="s1">&#39;</span><span class="p">]</span> <span class="k">if</span> <span class="n">path</span> <span class="k">else</span> <span class="p">[]</span>
<span class="n">command</span> <span class="o">=</span> <span class="p">[</span><span class="sa">f</span><span class="s1">&#39;cd &quot;</span><span class="si">{</span><span class="n">path</span><span class="si">}</span><span class="s1">&quot;&#39;</span><span class="p">]</span> <span class="k">if</span> <span class="n">path</span> <span class="k">else</span> <span class="p">[]</span>
<span class="n">command</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="sa">f</span><span class="s1">&#39;chmod</span><span class="si">{</span><span class="n">recursive</span><span class="si">}</span><span class="s1"> </span><span class="si">{</span><span class="n">mode</span><span class="si">}</span><span class="s1"> </span><span class="si">{</span><span class="n">file_name</span><span class="si">}</span><span class="s1">&#39;</span><span class="p">)</span>
<span class="n">execute_command</span><span class="p">(</span><span class="n">command</span><span class="o">=</span><span class="n">command</span><span class="p">)</span></div>

Expand Down

0 comments on commit 0bac8e1

Please sign in to comment.