Skip to content

Improve docs on SCRATCHDIR #70

@janxkoci

Description

@janxkoci

Some formulations in the docs describing the use of SCRATCHDIR are misleading, e.g.:

The last two lines can be piped together.
```bash
cp h2o.out $DATADIR/ || export CLEAN_SCRATCH=false
```

It is misleading / incomplete, because the suggested code does not call clean_scratch, so the scratch is not actually cleaned. I believe the line should instead read:

cp h2o.out $DATADIR/ || export CLEAN_SCRATCH=false; clean_scratch

A simpler alternative suggested by support staff by email could be included in the docs too:

cp h2o.out $DATADIR/ && clean_scratch

This cleans scratch only if the copy command succeeds.

Similar examples could be also added to the dedicated page on SCRATCHDIR, which currently looks very incomplete (to a user searching information about using scratch): https://docs.metacentrum.cz/en/docs/computing/infrastructure/scratch-storages

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions