#!/bin/ksh
#
# call ftp in remote terminal mode:
#

Log=~accting/ftp.log
trap 'echo "`date` $LOGNAME closed" >>$Log' EXIT INT QUIT TERM HUP TSTP

echo "`date` $LOGNAME opened ftp" >>$Log

cd /tmp || { echo Can\'t cd to the spool directory
	exit 1
}

# option: -r  - turns to remote terminal mode
/usr/local/bin/ftp -r

cd
