Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
HTML
<div class="section" id="file-location">
<span id="index-0"></span><span id="id1"></span>
<div class="line-block">
<div class="line">We have seen so far that <a class="reference internal" href="/wiki/display/ECFLOW/Glossary#term-ecflow-server"><em class="xref std std-term">ecflow_server</em></a> is looking for the files it needs in specific locations.</div>
<div class="line">You can control the location of your files by using the following <a class="reference internal" href="/wiki/display/ECFLOW/Glossary#term-variable"><em class="xref std std-term">variable</em></a>&#8216;s</div>
</div>
<div<ul class="highlight-python"><pre>ECFsimple">
<li>ECF_INCLUDE  Is where :term:`ecflow_server` <a class="reference internal" href="/wiki/display/ECFLOW/Glossary#term-ecflow-server"><em class="xref std std-term">ecflow_server</em></a> will look for include files.</li>
ECF<li>ECF_FILES    Is where :term:`ecflow_server` <a class="reference internal" href="/wiki/display/ECFLOW/Glossary#term-ecflow-server"><em class="xref std std-term">ecflow_server</em></a> will look for the :term:`ecf script` <a class="reference internal" href="/wiki/display/ECFLOW/Glossary#term-ecf-script"><em class="xref std std-term">ecf script</em></a> s if they are not at their default location.</li>
ECF<li>ECF_OUT      Is where the job output files will go.</pre>li>
</div>ul>
<div class="line-block">
<div class="line">If two tasks use the same <a class="reference internal" href="/wiki/display/ECFLOW/Glossary#term-ecf-script"><em class="xref std std-term">ecf script</em></a>, and are simply using different values of the same <a class="reference internal" href="/wiki/display/ECFLOW/Glossary#term-variable"><em class="xref std std-term">variable</em></a>&#8216;s,</div>
<div class="line">you do not want to maintain several copies of the same file.</div>
<div class="line">You can use the same script in multiple places within your <a class="reference internal" href="/wiki/display/ECFLOW/Glossary#term-suite"><em class="xref std std-term">suite</em></a> and using the same name</div>
<div class="line">by keeping the script into a common directory and pointing to this location using the <a class="reference internal" href="/wiki/display/ECFLOW/Glossary#term-variable"><em class="xref std std-term">variable</em></a> ECF_FILES.</div>
<div class="line">Many users use just one directory for their scripts and point to this directory with ECF_FILES.</div>
</div>
<p>If the tasks have different names, you can use the unix command <strong class="command">ln -s</strong> to create several names for the same file.</p>
<p><strong>What to do:</strong></p>
<ol class="arabic simple">
<li>Try to imagine how we could use ECF_FILES and <strong>ln</strong> to reduce the number of scripts in our example suite</li>
</ol>
</div>