LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 02:41 PM   #1
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431
Blog Entries: 32

Rep: Reputation: 3
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, 07:48 AM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
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



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 12: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 06:46 PM
ftp bash script idgeitman Linux - Newbie 1 04-29-2008 04:03 PM
FTP Bash script Elguapo Programming 2 06-07-2007 01:26 PM
BASH: FTP backup... elitecodex Programming 2 03-28-2004 11:30 AM

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

All times are GMT -5. The time now is 04:38 AM.

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
Open Source Consulting | Domain Registration