Error in FTP - reading file using For loop
Hi Forum Members,
I'm trying to read a file, and send respective file_names from the file to FTP server. I'm running this script where all respective files are present. Here's my code: Code:
#!/usr/bin/env bash Quote:
bash script.sh - I'm unable to figure out a way to fix this. - If I remove exit 0, then again I get same error. Linux version: Quote:
Please guide. Thanks. |
Update:
Fixed it. EOF at line 24 needed to be indented with do. Found solution from: http://askubuntu.com/questions/48556...ed-end-of-file |
All times are GMT -5. The time now is 01:58 AM. |