File: files-location.rst

package info (click to toggle)
ecflow 5.15.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 51,868 kB
  • sloc: cpp: 269,341; python: 22,756; sh: 3,609; perl: 770; xml: 333; f90: 204; ansic: 141; makefile: 70
file content (31 lines) | stat: -rw-r--r-- 1,449 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.. index::
   single: file location (tutorial)
   single: ECF_INCLUDE (tutorial)
   single: ECF_FILES (tutorial)
   single: ECF_OUT (tutorial)
   single: script management  (tutorial)

.. _tutorial-file-location:

File location
=============

| We have seen so far that :term:`ecflow_server` is looking for the files it needs in specific locations. 
| You can control the location of your files by using the following :term:`variable`\ s

* ECF_INCLUDE  Is where :term:`ecflow_server` will look for include files.
* ECF_FILES    Is where :term:`ecflow_server` will look for the :term:`ecf script`\ s if they are not at their default location.
* ECF_OUT      Is where the job output files will go.

| If two tasks use the same :term:`ecf script`, and are simply using different values of the same :term:`variable`\ s, 
| you do not want to maintain several copies of the same file. 
| You can use the same script in multiple places within your :term:`suite` and using the same name 
| by keeping the script into a common directory and pointing to this location using the :term:`variable` ECF_FILES. 
| Many users use just one directory for their scripts and point to this directory with ECF_FILES.

If the tasks have different names, you can use the unix command :command:`ln -s` to create several names for the same file.


**What to do:**

1. Try to imagine how we could use ECF_FILES and **ln** to reduce the number of scripts in our example suite