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: Fri, 5 Dec 2008 10:28:04 +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> <11380cb60812021712n708f3dd9v2f62a8e7ee4e9861@mail.gmail.com> <200812030929.08039.daniel.ramaley@drake.edu>
On Thu, Dec 4, 2008 at 00:29, Daniel A. Ramaley <daniel.ramaley@example.com> wrote: > On Tuesday December 2 2008 19:12, Clemens Schwaighofer wrote: >>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" > > Are $delete_list and $delete_list_file the same? From your usage, i'm > going to assume they are, but if not, then please disregard everything > else i say below. > <snip> > > $some_program | ssh -f target_user@example.com 'xargs rm -fv' wow, thanks. I have no idea why I never thought about that, and I really don't know. But I think I had some troubles and wrong usage of the file list for the xargs command. I never thought to pipe it "into" ssh. Removing one command is always good. I can't directly pipe it from a command, as this file list is somehow generated from a flow of different command. but thanks anyway -- 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
- 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: Daniel A. Ramaley
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