Skip to content

Instantly share code, notes, and snippets.

@crmackay
Last active August 29, 2015 14:16
Show Gist options
  • Save crmackay/6b21a03b299b8a111456 to your computer and use it in GitHub Desktop.
Save crmackay/6b21a03b299b8a111456 to your computer and use it in GitHub Desktop.
lsf in python
#!/usr/bin/env python
import os
#
#BSUB -W 00:10
#BSUB -q regular
#BSUB -n 12
#BSUB -J myjob.py
#BSUB -P project_code
#BSUB -oo output
os.system("/path/to/my/exectuble") # my note: one should use the subprocess module instead of os.system...
## from https://www2.cisl.ucar.edu/resources/yellowstone/using_resources/runningjobs/lsf_examples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment