I have never written a shell-script before and am trying to understand this piece of code:
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
put $FILE
quit
END_SCRIPT
exit 0
What does the <<END_SCRIPT
signify? And what is the quote call doing? Thanks in advance, again I am a super newb
The <<
is heredoc syntax in bash
For the quote, put, quit
is FTP command
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With