Why is it whenever I use this I get prompted for password
Code:
FTP_OUTPUT=$(/usr/bin/ftp -i -v -n $FTP_HOST_ADDRESS <<END_FTP
user $FTP_HOST_USERNAME $FTP_HOST_PASSSWORD
$FTP_TRANSFER_TYPE
lcd $PATH_TO_DUMPEDFILES_DIR
cd $PATH_TO_PUT_DUMPED_FILES_ON_HOST
put $file_to_ftp
quit
END_FTP)
And whenever I do this:
Code:
/usr/bin/ftp -i -v -n $FTP_HOST_ADDRESS <<END_FTP
user $FTP_HOST_USERNAME $FTP_HOST_PASSSWORD
$FTP_TRANSFER_TYPE
lcd $PATH_TO_DUMPEDFILES_DIR
cd $PATH_TO_PUT_DUMPED_FILES_ON_HOST
put $file_to_ftp
quit
END_FTP
I get the following error :
./myscript.ksh[89]: syntax error at line 190 : `<<' unmatched
On line
89 I have this :
Code:
/usr/xpg4/bin/ls -ltr $PATH_TO_FILES/$file_to_look_for | /usr/xpg4/bin/awk '{print $9}' | while read path_to_found_file
On line
190 I have this :
Code:
/usr/bin/ftp -i -v -n $FTP_HOST_ADDRESS <<END_FTP
I really don't understand the above error, there is nowhere else in the script where I'm using
<< except on line 190 (there are no other
>> in the script). I have also went through and counted all the
` they all "add-up".