this works fine;
ftp -n $FTP_HOST <<FTP_TERMINATE
quote USER $FTP_USER
quote PASS $FTP_PASS
bye
FTP_TERMINATE
exit 0;
whereas this doesn't
checkFtp() {
ftp -n $FTP_HOST <<FTP_TERMINATE
quote USER $FTP_USER
quote PASS $FTP_PASS
bye
FTP_TERMINATE
exit 0;
}
checkFtp;
It's about the << in the ftp connection... but hell I need them! how do I escape them?
anybody has a clue?!
Cheers,
Seb.