#!/bin/bash # # Downloads and edits if necessary Steve Lloyd's Auto WMS configuration file # See http://pprc.qmul.ac.uk/~lloyd/gridpp/rbtest.html # # Author: Steve Lloyd QMUL # Options: # -v bla - change the VO to bla (default atlas) # # To use this do: # glite-wms-job-submit -a --config autowms.conf something.jdl # ##################################################### # Get command line options usage="Usage: get_autowms [-v vo]" VO=atlas while getopts ":v:" opt; do case $opt in v ) VO=$OPTARG;; \? ) echo $usage exit 1;; * ) echo $usage exit 1;; esac done # Get the file wget -q -N -O temp_autowms.conf http://pprc.qmul.ac.uk/~lloyd/gridpp/autowms.conf # Change the VO sed "s|VirtualOrganisation = \"atlas\";|VirtualOrganisation = \"${VO}\";|" temp_autowms.conf > autowms.conf # Remove the temporary file if [ -e temp_autowms.conf ]; then rm temp_autowms.conf fi