How to correctly connect to ftp using password and username
I can't figure out it on my own. I'm using example from FAQ. The problematic line is marked.
It shows: "Searching for host... Network error: Connection timed out."
If i change "open ftp://aaaa.bbbb.lt" then it works, but prompts for username and password.
Also, if i try "open aaaa.bbbb.lt" shows "Searching for host... Network error: Connection timed out." (the same error as above)
How to fix script? :)
# Automatically answer all prompts negatively not to stall
# the script on errors
option batch on
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect using a password
# open user:password@example.com
# PROBLEM IS BELOW
open username:password@aaaa.bbbbb.lt
# Change remote directory
cd dainava
# Force binary mode transfer
option transfer binary
# Download file to the local directory d:\
put Groups.txt
# Disconnect
close
It shows: "Searching for host... Network error: Connection timed out."
If i change "open ftp://aaaa.bbbb.lt" then it works, but prompts for username and password.
Also, if i try "open aaaa.bbbb.lt" shows "Searching for host... Network error: Connection timed out." (the same error as above)
How to fix script? :)