#!/bin/bash if [ $# -ne 1 ] ; then echo "Usage: $0 collect-name" >&2 exit 1 fi graph_name=$1 # The following line helps with runing a she-bang line of: # '#!/usr/bin/env ruby' # when the current script has been run from Perl under Cygwin # export PATH=/usr/bin:$PATH s-update --service http://localhost:3030/greenstone/update "CLEAR $graph_name"