Skip to content

Instantly share code, notes, and snippets.

@yk-tanigawa
Last active July 21, 2017 23:20
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save yk-tanigawa/d03fb5d71e5dd9be2d0f36b9b2ae75ca to your computer and use it in GitHub Desktop.
sherlock
#!/bin/sh
# (@) hello world
#SBATCH --job-name=hello
#SBATCH --output=hello.%j.out
#SBATCH --error=hello.%j.err
#SBATCH --time=0:01:00
#SBATCH --qos=normal
#SBATCH -p normal
#SBATCH --nodes=1
#SBATCH --cores=1
#SBATCH --mem=1000
#SBATCH --mail-type=END,FAIL
#SBATCH --mail-user=foobar@stanford.edu
#################
cat $0 > hello.${SLURM_JOBID}.sh
#if [ ! -d ${LOCAL_SCRATCH} ]; then mkdir -p ${LOCAL_SCRATCH}; fi
#SCRATCH_TODAY=$SCRATCH/$(date +%Y%m%d)
#if [ ! -e ${SCRATCH_TODAY} ]; then mkdir -p ${SCRATCH_TODAY}; fi
#################
pwd
echo hello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment