Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting up generic FTP multiple locations

Status
Not open for further replies.
Aug 3, 2001
29
US
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
 
Sorry, Andy

but I was not thinking ...

While running this script I got a 127 error back from RS6000 in a log.


Thanks,

Len
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top