#!/bin/ksh -p # exp_ftp: ftp transport mechanism # $Id: //depot/dev/proactive/explorer3/lib/exp_ftp#10 $ EXP_FTP_VERSION='$Revision: #10 $' export EXP_FTP_VERSION if [ -n "${DO_VERSION}" ] then LIB=`basename $0` echo "${LIB} version: ${EXP_FTP_VERSION}" exit fi # Source common functions . ${EXP_LIB}/exp_common # Must have EXP_FILE, EXP_FTP and EXP_FTPDEST require 'test -f "${EXP_FILE}"' require 'test -n "${EXP_FTP}"' require 'test -n "${EXP_FTPDEST}"' require "cd ${EXP_TMPDIR}" ARCH=`uname -p` EXP_FNAME=`basename ${EXP_TARGET}` # Require host to be in /.netrc require 'egrep -s -e "${EXP_FTP}" /.netrc' "Unable to find ${EXP_FTP} in /.netrc, please update" # Found in /.netrc, make attempt to ftp EXP_TMPFILE="${EXP_TMPDIR}/ftp.$$" ftp ${EXP_FTP} >${EXP_TMPFILE} <