#!/bin/sh # this is a script that is called when lap is run as a helper # arg1 is a file (in /usr/tmp) containing a copy of the source # arg2 (not currently used) is the original URL ./generate_head ttt echo args are $* there are $# args ARG1=$1 ARG2=$2 shift if test $# -ge 1; then shift fi echo lap_helper args are $* PATH=.:/usr/ucb:/opt/jdk1.2.1/bin:/home/pjbrown/sunbin:/home/pjbrown/bin:/usr/java/bin:/usr/bin:/usr/local/bin:/bin:/usr/X11R6/bin:/usr/local/jdk/bin:/usr/X11R6/bin:/usr/local/jdk/bin:$PATH export PATH # special set up because HOSTTYPE is not set on apache at exeter if test x"$SERVER_NAME" = x"www.dcs.ex.ac.uk"; then HOSTTYPE=sun4; export HOSTTYPE fi # give warning if called from file that is not .ann if test `basename "$ARG1" .ann` = `basename "$ARG1"`; then echo Warning: $0 called with file with suffix that is not .ann: $ARG1 xterm -e vi $ARG1 exit 1 fi #cp "$1" /home/pjbrown/web_tmp/latest #echo "$1" >> /home/pjbrown/web_tmp/latest #echo ARG1=$1 ARG2=$2 HELPER=yes export HELPER ANNDIR=/home/pjbrown/annotation_experiments/guide_layers LAP=$ANNDIR/web_experiment/lap COPY=/home/pjbrown/web_tmp/copy.ann cd $ANNDIR/helper chmod 777 $ARG1 $LAP "$ARG1" if test x$MOZILLA_FIVE_HOME != x; then echo returned from launching LAP with $ARG1 fi