#! /bin/bash

# default libexecdir used to bootstrap scripts
libexecdir=${GLOBUS_LOCATION}/libexec

# this should use the (not yet packaged for GT3) globus-hostname
hostname=`hostname --fqdn`


echo '<ce:Cluster '
echo 'xmlns:ce="http://glue.base.ogsa.globus.org/ce/1.1"'

echo "ce:Name=\"${hostname}\""
echo "ce:UniqueID=\"${hostname}\""
echo "xsi:type=\"xmlsoap:Element\""
echo "xmlns:xmlsoap=\"http://xml.apache.org/xml-soap\""
echo "xmlns:xsi=\"http://www.w3.org/1999/XMLSchema-instance\""


echo '>'

$1

echo "</ce:Cluster>"
