|
|
|
We recommend all batch scripts explicitly define the path to the output/error files instead of relying on Torque's default naming convention.
|
|
|
|
|
|
|
|
1. Modify all batch scripts (e.g., `jobs/container/main.sh.mustache`) as such:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
#PBS -N container_main
|
|
|
|
...
|
|
|
|
#PBS -o container_main.log
|
|
|
|
#PBS -j oe
|
|
|
|
...
|
|
|
|
```
|
|
|
|
|
|
|
|
The `-o` specifies output log filename and the `-j oe` joins both the output and error logs into the output log file. This makes it easier to see where the error occurred in the workflow.
|
|
|
|
|
|
|
|
If you don't want both streams in a single file, then specify:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
#PBS -N container_main
|
|
|
|
...
|
|
|
|
#PBS -o container_main.output
|
|
|
|
#PBS -e container_main.error
|
|
|
|
...
|
|
|
|
```
|
|
|
|
|
|
|
|
2. Follow the steps outlined in [Resolving the URL to a file of a simulation](Resolving-the-url-to-a-results-file-of-a-simulation)
|
|
|
|
|
|
|
|
3. Add to your erb:
|
|
|
|
|
|
|
|
```erb
|
|
|
|
<%= link_to "Output Log", container_results_path(@container, "container_main.output") %>
|
|
|
|
<%= link_to "Error Log", container_results_path(@container, "container_main.error") %>
|
|
|
|
``` |
|
|
\ No newline at end of file |