Wednesday, November 16, 2011

Working with files on a ftp account

I have to work with files on a ftp-server (renaming, deleting).
With ncftp i found no solution, but after installing lftp
this work fine:

Renaming file1 into file2 :
lftp -u "username,userpass" ftp.ftpserver.com -e"mv /directory/filename1 /directory/filename2;exit"

Deleting filename
lftp -u "username,userpass" ftp.ftpserver.com -e"rm /directory/filename;exit"

No comments:

Post a Comment