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] deleting a local list of filenames from remote server
- Date: Wed, 03 Dec 2008 11:56:52 +0000
- From: Godwin Stewart <gstewart@example.com>
- Subject: Re: [tlug] deleting a local list of filenames from remote server
- References: <4935289F.4090309@jj.em-net.ne.jp> <11380cb60812021712n708f3dd9v2f62a8e7ee4e9861@mail.gmail.com> <20081203.115248.193688192.acmuller@jj.em-net.ne.jp>
- User-agent: Thunderbird 2.0.0.16 (X11/20080707)
On 03/12/08 02:52, Charles Muller wrote: > I have succeeded with this: > > scp ~/filelist user@example.com:public_html/cache; > > ssh user@example.com 'cd public_html/cache && xargs rm' < filelist; > > # then, to delete the contents of the filelist when I am done: > > cp ~/filelist-null ~/filelist Since the command you're running on the remote server accepts its input from stdin, you can do away with the scp altogether. All you're doing here is copying the file list to the remote server, then piping the local copy into ssh (i.e. not even using the remote copy). Also, if your ~/filelist-null file is indeed a null file (zero length) then you can do ":> ~/filelist" instead, or "cp /dev/null ~/filelist". -- G. Stewart - gstewart@example.com Microsoft Palladium: "Where the hell do you think YOU'RE going today?"Attachment: signature.asc
Description: OpenPGP digital signature
- References:
- [tlug] deleting a local list of filenames from remote server
- From: Charles Muller
- Re: [tlug] deleting a local list of filenames from remote server
- From: Clemens Schwaighofer
- Re: [tlug] deleting a local list of filenames from remote server
- From: Charles Muller
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] deleting a local list of filenames from remote server
- Next by Date: Re: [tlug] deleting a local list of filenames from remote server
- Previous by thread: Re: [tlug] deleting a local list of filenames from remote server
- Next by thread: Re: [tlug] deleting a local list of filenames from remote server
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links