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: Wed, 07 Mar 2007 11:41:48 +0900
- From: "Zev Blut" <zb@??>
- Subject: Re: [tlug] find files and put with ncftp
- References: <78d7dd350703060754t1d13d297rb257db6629e5e9fb@example.com>
- Organization: Ubiquitous Business Technology, Inc.
- User-agent: Opera Mail/9.02 (Linux)
Hello,
On Wed, 07 Mar 2007 00:54:12 +0900, Nguyen Vu Hung <vuhung16plus@??> wrote:
I wanted to find all files in a folder, then use ncftp to put the file(s) to a remote ftp server. Here is the script:
find /home/vuhung/public_html/aoc/aoclife.ddo.jp/recs/aoc-recs/ -type f -mtime -2 | xargs \ ncftp -u"$FTPU" -p"$FTPP" $FTPH<<EOF \ cd ~/public_html/aoc/recs/aoc-recs/ \ put "The file found in find command" \ quit \ EOF exit
Take a look at ncftpput. If you "man" it you will see one of the options reads the files from STDIN.
So this should probably work:
"find /home/vuhung/public_html/aoc/aoclife.ddo.jp/recs/aoc-recs/ -type f -mtime -2 | ncftpput -u"$FTPU" -p"$FTPP" -c $FTPH ~/public_html/aoc/recs/aoc-recs/"
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
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Fully DHCP router? (Maybe OT)
- 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