The `/scratch` space is only accessible in jobs using the `SCRATCHDIR` environment variable.
The `/scratch` space is accessible in jobs using the `SCRATCHDIR` environment variable.
A temporary directory named `$SCRATCHDIR=/scratch/$SLURM_JOB_ID` is automatically created in `/scratch` when a job begins. Therefore, each job `$SLURM_JOB_ID` is granted a specific `$SCRATCHDIR` directory where it can write and read its execution temporary files.
A temporary directory named `$SCRATCHDIR=/scratch/$SLURM_JOB_ID` is automatically created in `/scratch` when a job begins. Therefore, each job `$SLURM_JOB_ID` is granted a specific `$SCRATCHDIR` directory where it can write and read its execution temporary files.
The `$SCRATCHDIR` directory is automatically destroyed at the end of the job: **do not forget to save the `$SCRATCHDIR` important files in your home directory before the job ends**.
The `$SCRATCHDIR` directory is destroyed 5 days after the end of the job: **do not forget to save the `$SCRATCHDIR` important files in your home directory before the `$SCRATCHDIR` is deleted!**.