#!/bin/sh
#
# $Id: runffx.sh,v 4.2 2000/04/11 11:32:43 mj Exp $
#
# Run ffx programs
#
# Usage: rungate
#

LOCK=runffx

# Output to "log-in" log file
FIDOGATE_LOGFILE="%G/log-ffx"
export FIDOGATE_LOGFILE

# Lock it
/usr/pkg/lib/fidogate/ftnlock -l $LOCK $$
st=$?
if [ $st -ne 0 ]; then
	exit 2
fi


# process news for ffx
/var/news/etc/send-ffx orodruin

# batch ffx
# CUSTOMIZE! ----vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
/usr/pkg/lib/fidogate/ftnpack -f 242:1000/5    -I %B/out.0f2/orodruin
/usr/pkg/lib/fidogate/ftnpack -f 242:1000/1.20 -I %B/out.0f2/tux

# process inbound ffx files
/usr/pkg/lib/fidogate/ffxqt


# Unlock it
/usr/pkg/lib/fidogate/ftnlock -u $LOCK

exit 0
