Skip to content

Instantly share code, notes, and snippets.

@oweidner
Created October 28, 2011 17:57
Show Gist options
  • Save oweidner/1322898 to your computer and use it in GitHub Desktop.
Save oweidner/1322898 to your computer and use it in GitHub Desktop.
Globus RSL script to booststrap and test Air
(* RSL 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/1322898 *)
(* *)
(* Run it like this (replace GRAM URL with your own) *)
(* globusrun -b -r tuscany.med.harvard.edu:2119/jobmanager-fork -f job.rsl *)
&(executable=/bin/sh)
(arguments=-c "curl -fsSLk https://raw.github.com/gist/1321016 > pystrap.sh && export AIR_AMQP_HOST=gw68.quarry.iu.teragrid.org && /bin/sh pystrap.sh -l air -n && ./mypy_u`id -u`/bin/air-run -p `hostname` -o id")
(stdout=air_test_output.txt)
(stderr=air_test_error.txt)
(count=1)
(maxWallTime=5) (* minutes *)
@oweidner
Copy link
Author

The output can be captured with the air-flow tool. It will look something like this:

$ air-flow -s *.*.*

registering key '*.*.*'
Waiting for logs. To exit press CTRL+C
'proc.tuscany%med%harvard%edu.state':"timestamp: None oldstate: 'NONE', newstate: 'RUNNING', exitcode: None"
'proc.tuscany%med%harvard%edu.output':"timestamp: None stderr: True, stdout True, streamfragment: 'uid=542(engage) gid=542(engage) groups=542(engage)\\n'"
'proc.tuscany%med%harvard%edu.state':"timestamp: None oldstate: 'RUNNING', newstate: 'DONE', exitcode: '0'"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment