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, 3 Dec 2008 10:12:54 +0900
- From: "Clemens Schwaighofer" <gullevek@example.com>
- Subject: Re: [tlug] deleting a local list of filenames from remote server
- References: <4935289F.4090309@jj.em-net.ne.jp>
On Tue, Dec 2, 2008 at 21:22, Charles Muller <cmuller-lst@example.com> wrote: > I am thinking that I need to do something that is (logically, at least) like > this: > > ssh user@example.com 'xargs rm < filelist public_html/cache/' > > I know that this is not close at all, but I have spent the evening reading > man pages and Googling around for something equivalent, and so far have not > been able to come up with something close. I assume that what I want to do > is possible. Is it? I do this in one of my scripts scp $delete_list target_user@example.com:~; ssh -f target_user@example.com "cat ~/$delete_list_file | xargs rm -fv" works perfectly. You can drop the "-v" I just have this to get back what I deleted for my notification mail. -- Clemens Schwaighofer gullevek@example.com / gullevek@example.com http://www.flickr.com/photos/gullevek/
- References:
- [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: [tlug] Recommendations on ISDN Cards for a SIP server
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links