#!/bin/sh # It seems stupid, but in Fedora 16, if you don't explicitly # make $HOME your current working directory, birch starts in root (/) # and for whatever reason, bioLegato jobs launched from birch won't # be able to find important files. cd # Get BioLegato environment variables. if [ -f $BIRCH/admin/setblenv.profile.$BIRCH_PLATFORM.source ] then . $BIRCH/admin/setblenv.profile.$BIRCH_PLATFORM.source fi BIOLEGATO_HOME=$BIRCH/java/bioLegato export BIOLEGATO_HOME # The location of anciliary data files used by bioLegato. BL_DATA_DIR=$BIRCH/dat/blprefs export BL_DATA_DIR BL_PROPERTIES=$BL_DATA_DIR/blprefs.properties export BL_PROPERTIES java -Xms6M -Xmx32M -jar $BIOLEGATO_HOME/pcdcanvas.jar $* # ------------------------ LOGGING ------------------------------ # For future use when we have a secure logging method. #if [ "$BIRCH_LOGGING" -eq "1" ] # then # echo `whoami` `date` >> $BIRCH/local/admin/biolegato.log #fi