#!/bin/bash #SBATCH --job-name=test_scratch #SBATCH --output=slurm.out #SBATCH --error=slurm.err #SBATCH --partition=develop echo "My scratch directory is: $JOB_SCRATCH_DIR" echo "ABCDEFGHIJKLMNOPQRSTUVWXYZ" > $JOB_SCRATCH_DIR/testfile echo "Here is a listing of my scratch directory:" ls -l $JOB_SCRATCH_DIR echo "Here are the contents of $JOB_SCRATCH_DIR/testfile:" cat $JOB_SCRATCH_DIR/testfile