LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-23-2011, 03:41 PM   #1
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 430
Blog Entries: 28

Rep: Reputation: 2
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
 
Old 03-24-2011, 08:48 AM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,825
Blog Entries: 1

Rep: Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221
Quote:
Originally Posted by ted_chou12 View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BASH printf and ftp remirez83 Programming 5 01-13-2010 01:56 PM
Read a text file and ftp files using bash w/out leaving the ftp prompt dj_tyr Linux - Newbie 6 10-12-2009 07:46 PM
ftp bash script idgeitman Linux - Newbie 1 04-29-2008 05:03 PM
FTP Bash script Elguapo Programming 2 06-07-2007 02:26 PM
BASH: FTP backup... elitecodex Programming 2 03-28-2004 12:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration