#!/bin/bash

if [ $# -eq 0 ]
  then
    echo "give me issuedate"
fi

glob=~/issues/$1*
if compgen -G "$glob" > /dev/null; then
    ## do nothing,
    :
else
    echo "$0 is not a valid issue date"
fi

date=$1

nohup ~/ernad/bin/grond -i "$date" > "/tmp/grond_$date.out" > "/tmp/grond_$date.out" &

#alias peep_grond="/usr/bin/tail -f /tmp/grond_$date.out"
#peep_grond


exit 0
