The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 05-29-2009
ghostdog74 ghostdog74 is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2006
Posts: 2,540
windows ftp client doesn't cut it. if you want, go download an ftp client for windows that support specifying a port number. Or, you can use a programming language such as Perl or Python with their ftp module. those modules allow you to specify connection with a different port. eg Python
Code:
#!/usr/bin/env python
import ftplib
server="localhost"
user="anonymous"
password="test@hotmail.com"
try:
    ftp = ftplib.FTP()
    ftp.connect(server,21)     #specify port number when connection
    ftp.login(user,password)
except Exception,e:
    print e
else:    
    ftp.cwd("incoming")    
    ftp.retrlines('LIST')