Skip to content

Instantly share code, notes, and snippets.

@jklymak
Created May 21, 2017 19:12
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 jklymak/e5f2e43763ddd096e86171ff4f93c964 to your computer and use it in GitHub Desktop.
Save jklymak/e5f2e43763ddd096e86171ff4f93c964 to your computer and use it in GitHub Desktop.
python pbs script. This is just an outline. It works fine, so maybe a nice way to do PBS scripts.
#!/u/home/jklymak/miniconda2/bin/python
#PBS -m be
#PBS -M jklymak@gmail.com
#PBS -l select=1:ncpus=1
#PBS -l walltime=00:00:10
#PBS -q transfer
#PBS -A XXXXXXXXXXX
#PBS -j oe
#PBS -N Test
import glob,os
os.chdir(os.environ['PBS_O_WORKDIR'])
print('Hi')
a = glob.glob('*.py')
print(a)
print(os.environ)
parent='Test'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment