port number in open command

Advertisement

nimmis
Joined:
Posts:
8
Location:
CA

port number in open command

Writing my first script and need help. when I run this Connection fails. Looking at site Manager for this site on the GUI front-end I see port number is set to 31110. When the script runs, port number =21 in the log file.
Can someone help me? How do I change the port number in the open command? I tried -port=31110 and the script will not even run.
# Automatically abort script on errors
option batch abort
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect
open ftp://userid:password@ftp.xyz.com/ -certificate="34:b4:0a:6f:4f:be:6f:0c:43:e9:52:e8:e8:3c:92:56:ce:03:7b:5b"
# Disconnect
close
# Exit WinSCP
exit

Reply with quote

Advertisement

nimmis

I figured it out
open ftp://<<username>>:<<password>>@xyz.celink.com:31110/ -explicittls -certificate="bb4:b4:0a:6f:4f:be:6f:0c:43:e9:52:e8:e8:3c:92:56:ce:03:7b:5b"

Reply with quote

Advertisement

You can post new topics in this forum