#!/bin/sh
echo ""
echo ""
echo "Content-type: text/csv\n"
# set environment variables.
. /u/catcom/catcom_vars
OPDIRCSVFILE="TF202aopdir.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
cp test.unl $tmpfile1
#runisql <$OPDIRCSVFILE
rm -f $tmpfile1
###############################
# remove lock
#rm -f $LOCKFILE
###############################
cat $OPDIRCSVFILE
exit 0