How to perform FTP move
I am copying files from a remote server to my local server using lftp. After I get the files I want to move them to a sub-directory on the remote server so that I don't copy them again during subsequent copying.
When I issue the mv command using wildcard character *.*, as in: mv /remote/lcw/OUT/*.* /remote/lcw/OUT/XFRD/ I get: The filename, directory name, or volume label syntax is incorrect. However, mv /remote/lcw/OUT/filename.txt /remote/lcw/OUT/XFRD/filename.txt works fine. Is it possible to do a wildcard move on a remote server? Thanks, Gregory |
try this.
mv /remote/lcw/OUT/* /remote/lcw/OUT/XFRD/ |
Thanks, but it didn't work.
Issued command: mv /remote/lcw/OUT/* /remote/lcw/OUT/XFRD/ Received: Access failed: 550 /remote/lcw/OUT/*: The filename, directory name, or volume label syntax is incorrect. Using RH EL 4.5 Thanks, Gregory |
For an easy approach you might switch to a GUI-tool like gftp, for more complex or repetitive situation you are probably better served with ssh or scp called from within a shell script. With a correct ssh setup with all the authentication in place you wouldn't even need to type passwords when running your script. Check out some reasonable tutorial on ssh and scp and decide for yourself.
Debian |
All times are GMT -5. The time now is 10:08 PM. |