Skip to content

Instantly share code, notes, and snippets.

@oweidner
Created October 28, 2011 19:14
Show Gist options
  • Save oweidner/1323198 to your computer and use it in GitHub Desktop.
Save oweidner/1323198 to your computer and use it in GitHub Desktop.
PBS/TORQUE script to bootstrap and test Air
#!/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 (ole.weidner@me.com)
## 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