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, 8 Mar 2007 01:45:01 +0900
- From: "Nguyen Vu Hung" <vuhung16plus@??>
- Subject: Re: [tlug] find files and put with ncftp
- References: <78d7dd350703060754t1d13d297rb257db6629e5e9fb@example.com> <op.tossfye1rtshzt@example.com> <78d7dd350703070339l34c9a89bpdea5ab9d0284cad1@example.com> <op.totiroxlrtshzt@example.com>
On 3/7/07, Zev Blut <zb@??> wrote:On Wed, 07 Mar 2007 20:39:52 +0900, Nguyen Vu Hung <vuhung16plus@??> wrote:
> The man page writes and example: > > # The following example shows how to make a backup > # and store it on a remote machine: > $ tar cf - / | ncftpput -c sonic.sega.co.jp /usr/local/backup.tar > > in my case, the stdin contains filenames, not contents of the files. I > know I can cat it and then ncftpput, but we lose the file name:
That is annoying at first, but probably very useful at other times.
> find -options | xargs cat - | ncftput -options remote_host remote_file > > how to make remote_file equals to the name of the file it is transfering?
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 {} \;
ZevIt 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:
-- Best Regards, Nguyen Hung Vu vuhung16plus{remove}@?? VIQR Standard: http://vi.i18n.kde.org/viqr http://www.flickr.com/photos/vuhung/tags/fav/
- Follow-Ups:
- Re: [tlug] find files and put with ncftp
- From: Stephen J. Turnbull
- Re: [tlug] find files and put with ncftp
- From: Zev Blut
- 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
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] (OT) Reverse DNS resolution blues- ISP recommendations?
- 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