lenjturnbull
MIS
I am using a current FTP script and trying to attach a generic script to send to multiple locations based on flags and counters. I want to add it at the time that FTPing takes place but I am getting an error.
I am not sure I am setting up the 2nd script properly.
Example
:ftpscript
>$FTPLOG 2>/dev/null
ftp -nv << EOF >> $FTPLOG 2>&1
open $REMOTEHOST
user $HOSTLOGIN $HOSTPASSWORD
append $FROMFILE $HOSTFILE
bye
EOF
##
I want to be able to call a FTP_to214 script to run multiple destinations. I've tried adding the line after the
:ftpscript = Example
:ftpscript
$EDI_ROOT/script/FTP_to214.sh
#>$FTPLOG 2>/dev/null
#ftp -nv << EOF >> $FTPLOG 2>&1
#open $REMOTEHOST
#user $HOSTLOGIN $HOSTPASSWORD
#append $FROMFILE $HOSTFILE
#bye
##EOF
##
But I am getting an error when running ???
Thanks for any assistance
I really appreciate it.
Len T
I am not sure I am setting up the 2nd script properly.
Example
:ftpscript
>$FTPLOG 2>/dev/null
ftp -nv << EOF >> $FTPLOG 2>&1
open $REMOTEHOST
user $HOSTLOGIN $HOSTPASSWORD
append $FROMFILE $HOSTFILE
bye
EOF
##
I want to be able to call a FTP_to214 script to run multiple destinations. I've tried adding the line after the
:ftpscript = Example
:ftpscript
$EDI_ROOT/script/FTP_to214.sh
#>$FTPLOG 2>/dev/null
#ftp -nv << EOF >> $FTPLOG 2>&1
#open $REMOTEHOST
#user $HOSTLOGIN $HOSTPASSWORD
#append $FROMFILE $HOSTFILE
#bye
##EOF
##
But I am getting an error when running ???
Thanks for any assistance
I really appreciate it.
Len T