#!/bin/sh #echo "Content-type: text/csv\n" # set environment variables. . /u/catcom/catcom_vars OPDIRCSVFILE="TF201opdir.csv" ################################### # set working dir #cd /u/catcom/t21web/direnq ################################### # get lock #LOCKFILE="/tmp/t21websql.lok" #while true #do # if [ ! -f "$LOCKFILE" ]; then # break; # fi # sleep 2 #done #touch $LOCKFILE ########################################################################### tmpfile1="/tmp/webopdirtmp$$.unl" rm -f $tmpfile1 runisql <$OPDIRCSVFILE rm -f $tmpfile1 ############################### # remove lock #rm -f $LOCKFILE ############################### exit 0