LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ftp software on bash (https://www.linuxquestions.org/questions/linux-newbie-8/ftp-software-on-bash-870560/)

ted_chou12 03-23-2011 02:41 PM

ftp software on bash
 
Hi, I have downloaded the ftp software on my chroot environment, but I am having some troubles, (I have read the man page and the manual), please dont just send me to the page, i know where it is.
I see that mput seems to be sending multiple files to a remote dir, but:
Quote:

mput local-files [ ...]
what is the syntax?
mput path/to/file1.ext path/to/file2.ext remote/dir/file1.ext remote/dir/file2.ext
I can't get it quite right.
Second, how to output the result? For example, when I do dir, how to I output the result to bash as string? so i can process the result with bash script?
Third, is there a easy way if I want to put the file to the remote dir much like synchronizing the folder, only copy files that do not exist in the remote dir. (so it doesnt waste time to copy all over and overwrite them)
Thanks,
Ted

sycamorex 03-24-2011 07:48 AM

Quote:

Originally Posted by ted_chou12 (Post 4300837)
Third, is there a easy way if I want to put the file to the remote dir much like synchronizing the folder, only copy files that do not exist in the remote dir. (so it doesnt waste time to copy all over and overwrite them)
Thanks,
Ted

As for your last question, you might want to check rsync:
http://www.phpfreaks.com/forums/inde...topic=234259.0


All times are GMT -5. The time now is 10:05 AM.