#! /bin/sh
# Transmit batch to $1, using a FIDO mailer and the ffx remote execution
# protocol. See case statement for a translation of hostnames to FIDO
# addresses.
#
# The 'exec' cuts down the number of active processes

PATH="$PATH"":/usr/local/lib/fidonet"

case $1 in
	zruty)
		ftn="242:1000/4"
		;;
	sungate)
		ftn="242:4900/99"
		;;
	*)
		echo "No FTN address for system $1"
		exit 1
		;;
esac
	
exec ffx -gn $ftn rnews
