Skip to content

Instantly share code, notes, and snippets.

@alvinthomas
Created December 20, 2016 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alvinthomas/e8c13a5abd5a46b383b4c99a87935bf1 to your computer and use it in GitHub Desktop.
Save alvinthomas/e8c13a5abd5a46b383b4c99a87935bf1 to your computer and use it in GitHub Desktop.
Bash script for submitting Stata jobs on a Sun Grid Linux Cluster (like JHPCE at Johns Hopkins School of Public Health)
#!/bin/bash -l
#$ -pe local 2
#$ -l mem_free=3G
#$ -l h_vmem=4G
#$ -m e
#$ -M EMAIL@jhmi.edu
#$ -e efiles
#$ -o ofiles
cd ~/PATH_TO_FILE
stata-mp -b do DO_FILE
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment