Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] find files and put with ncftp
- Date: Thu, 08 Mar 2007 11:52:20 +0900
- From: "Zev Blut" <zb@??>
- Subject: Re: [tlug] find files and put with ncftp
- References: <78d7dd350703060754t1d13d297rb257db6629e5e9fb@example.com> <op.tossfye1rtshzt@example.com> <78d7dd350703070339l34c9a89bpdea5ab9d0284cad1@example.com> <op.totiroxlrtshzt@example.com> <78d7dd350703070845u78e62a0eodf6531acb3d4584e@example.com>
- Organization: Ubiquitous Business Technology, Inc.
- User-agent: Opera Mail/9.02 (Linux)
On Thu, 08 Mar 2007 01:45:01 +0900, Nguyen Vu Hung <vuhung16plus@??> wrote:
On 3/7/07, Zev Blut <zb@??> wrote:
Assuming you are not copying files in subdirectories, it might be as simple
as:
find -options | xargs ncftpput -options remote_host
If not you could brute force it with: find -options -exec ncftpput -options remote_host {} \;
It didn't work ( I tested ). As I said in previous email:
in my case, the stdin contains filenames, not contents of the files. I
know I can cat it and then ncftpput, but we can't remember the file name:
I am not talking about the -c option. You should be able to do what you want with ncftpput. Here is a sample of a test I just made.
" z@?? ~/ncftp $ ls bar.txt baz.txt foo.txt
z@?? ~/ncftp $ find ./ -type f | xargs ncftpput -u xxx -p xxxx ftpsrv ./
./foo.txt: 12.00 B 294.86 B/s
./bar.txt: 448.00 B 11.53 kB/s
./baz.txt: 32.00 B 833.36 B/s
"
Since you mentioned that you have spaced files then a brute force way should
work like so:
"
z@?? ~/ncftp $ ls
Spaced File.txt bar.txt baz.txt foo.txt
z@?? ~/ncftp $ find ./ -type f -exec ncftpput -u xxx -p xxx ftpsrv ./ "{}" \;
./foo.txt: 12.00 B 295.42 B/s
./bar.txt: 448.00 B 10.80 kB/s
./baz.txt: 32.00 B 790.40 B/s
./Spaced File.txt: 4.00 B 98.66 B/s
"
Zev
- Follow-Ups:
- Re: [tlug] find files and put with ncftp
- From: Nguyen Vu Hung
- References:
- [tlug] find files and put with ncftp
- From: Nguyen Vu Hung
- Re: [tlug] find files and put with ncftp
- From: Zev Blut
- Re: [tlug] find files and put with ncftp
- From: Nguyen Vu Hung
- Re: [tlug] find files and put with ncftp
- From: Zev Blut
- Re: [tlug] find files and put with ncftp
- From: Nguyen Vu Hung
Home | Main Index | Thread Index
- Prev by Date: RE: [tlug] Video streamer
- Next by Date: Re: [tlug] (OT) Reverse DNS resolution blues- ISP recommendations?
- Previous by thread: Re: [tlug] find files and put with ncftp
- Next by thread: Re: [tlug] find files and put with ncftp
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links