This is the way it looks in the script.
for file in filediff
$FTP servername END<<
ascii
lcd $HOME
cd $DHOME
put $file
quit
END
done
This gives me a syntax error, at the line $FTP servername END<<, the error follows.
./ftpsour.ksh[21]: syntax error at line 23 : `<<' unmatched
The script worked fine before I put it in a for loop. I had to put it in a loop because they want to be able to transfer multiple files. Help would be appreciated.
for file in filediff
$FTP servername END<<
ascii
lcd $HOME
cd $DHOME
put $file
quit
END
done
This gives me a syntax error, at the line $FTP servername END<<, the error follows.
./ftpsour.ksh[21]: syntax error at line 23 : `<<' unmatched
The script worked fine before I put it in a for loop. I had to put it in a loop because they want to be able to transfer multiple files. Help would be appreciated.