Skip to content

Instantly share code, notes, and snippets.

@rchowe
Last active August 29, 2015 14:15
Show Gist options
  • Save rchowe/ee353dd8a3dbf6eb75d3 to your computer and use it in GitHub Desktop.
Save rchowe/ee353dd8a3dbf6eb75d3 to your computer and use it in GitHub Desktop.
mkdir primes
for i in $(seq 2 100); do
bsub -o /dev/null -e /dev/null "./check_prime.py $i > primes/$i.txt"
done
# Check that all jobs are finished with `bjobs`, then run
cat primes/*.txt | sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment