Hi there, I need to write a script to ftp a number of files down to a local machine from our unix server. Here is what I have so far, by my understanding, it should work (this is the format of it anyway):
ftp -n $destination << EOF
user lemmein thisword
binary
put some file where it needs to go
quit
EOF
I get the error: ftp.sh[8]: Syntax error at line 10 : `<<' is not matched.
Do I have to set something up in the background?? I must be missing something simple.
Thanks!!
ftp -n $destination << EOF
user lemmein thisword
binary
put some file where it needs to go
quit
EOF
I get the error: ftp.sh[8]: Syntax error at line 10 : `<<' is not matched.
Do I have to set something up in the background?? I must be missing something simple.
Thanks!!