Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
doku:epilog [2014/06/03 12:16] – [Synopsis: What is an epilog script? When is it executed?] ir | doku:epilog [2021/05/13 17:45] (current) – removed goldenberg | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== User-specified epilog scripts ====== | ||
- | ===== Synopsis: ===== | ||
- | After job termination, | ||
- | This enables **copying back node-local temporary data (/ | ||
- | ===== How to use ===== | ||
- | To use this feature, all you have to do is place a bash script called **" | ||
- | To customize this even further, you can specify a different name for the script in your job file: | ||
- | < | ||
- | or when submitting the job: | ||
- | < | ||
- | It's probably best to specify the full path when using this method.\\ | ||
- | \\ | ||
- | Please bear in mind that it is absolutely required that you do only the **minimum necessary work in an epilog** script. Doing long-running tasks in your epilog file will not be tolerated! There is a timeout to prevent buggy epilog scripts from running forever, but it's very generous. | ||
- | ==== Example epilog.sh script ==== | ||
- | < | ||
- | TMP_DIR="/ | ||
- | cp -r $TMP_DIR ${SGE_O_WORKDIR}</ |