A
Arya, Manish Kumar
Hi,
I am new to python.
I have written a simple code to upload a file via ftp to remote server
-------------
import sys
import ftplib
host=sys.argv[1]
username=sys.argv[2]
passwd=sys.argv[3]
filename=sys.argv[4]
print host,username,passwd
ftp = ftplib.FTP(host,username,passwd)
fd=open(filename,'rb')
ftp.storbinary('STOR filename',fd)
I am new to python.
I have written a simple code to upload a file via ftp to remote server
-------------
import sys
import ftplib
host=sys.argv[1]
username=sys.argv[2]
passwd=sys.argv[3]
filename=sys.argv[4]
print host,username,passwd
ftp = ftplib.FTP(host,username,passwd)
fd=open(filename,'rb')
ftp.storbinary('STOR filename',fd)