Created
October 28, 2011 19:14
-
-
Save oweidner/1323198 to your computer and use it in GitHub Desktop.
PBS/TORQUE script to bootstrap and test Air
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## PBS script that bootstraps Air (http://oweidner.github.com/air/) | |
## on a remote machine and uses it to execute /bin/id. | |
## | |
## Copyright 2011 Ole Christian Weidner ([email protected]) | |
## Latest version: https://gist.github.com/gists/1323198 | |
## | |
## Run it with qsub: qsub air_via_pbs.sh | |
## or even directly via curl/qsub: | |
## curl https://raw.github.com/gist/1323198/ | qsub | |
#PBS -N air_test | |
#PBS -o air_test.out | |
#PBS -e air_test.err | |
#PBS -l walltime=0:10:00 | |
export AIR_AMQP_HOST=gw68.quarry.iu.teragrid.org | |
curl -fsSLk https://raw.github.com/gist/1321016 > pystrap.sh | |
/bin/sh pystrap.sh -n -l air | |
./mypy_u`id -u`/bin/air-run -p pbstest-`hostname` -o id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment