I have the following script where I'm trying to ftp a file after a test:
------------ Begin Script ----------------------------
[tt]
#!/bin/bash -x
HOST="64.102.94.191"
FTPUSER="anonymous"
FTPPASSWORD="CNC-Bot"
tgfile="/home/rlevau/collections/transport-usa1.zip"
dltype=`grep -i 'downloadingtype' /home/rlevau/download/out/download.hdr | tr -d '<DownloadingType>/'`
if [ "$dltype" = "Fu" ]; then
ftp -inv $HOST <<-EOF
user $FTPUSER $FTPPASSWORD
put $tgfile
bye
fi
[/tt]
--------------------- End Script --------------------
I get an "unexpected end of file" error. Can someone please tell me where I'm going astray?
TIA
------------ Begin Script ----------------------------
[tt]
#!/bin/bash -x
HOST="64.102.94.191"
FTPUSER="anonymous"
FTPPASSWORD="CNC-Bot"
tgfile="/home/rlevau/collections/transport-usa1.zip"
dltype=`grep -i 'downloadingtype' /home/rlevau/download/out/download.hdr | tr -d '<DownloadingType>/'`
if [ "$dltype" = "Fu" ]; then
ftp -inv $HOST <<-EOF
user $FTPUSER $FTPPASSWORD
put $tgfile
bye
fi
[/tt]
--------------------- End Script --------------------
I get an "unexpected end of file" error. Can someone please tell me where I'm going astray?
TIA