#!/bin/sh
#
# $Id: runout.sh,v 4.2 1996/11/30 15:46:13 mj Exp $
#
# Run protected and normal inbound tossing (rununpack, runtoss)
#
# Usage: runin
#

PRG=/usr/lib/fidogate
LOGDIR=`$PRG/ftnconfig =logdir`

if [ -z "$LOGDIR" ]; then
  echo "runtoss: parameter logdir missing"
  exit 1
fi


#
# Output to "log-out" log file
#
LOGFILE="$LOGDIR/log-out"
export LOGFILE

#
# Lock it
#
$PRG/ftnlock -l runout $$
st=$?
if [ $st -ne 0 ]; then
	exit 2
fi

$PRG/runtoss out

#
# Unlock it
#
$PRG/ftnlock -u runout

exit 0
