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] scp: how to overwrite 444 protected files
- Date: Fri, 12 Nov 2010 09:53:27 +0100
- From: Christian Horn <chorn@example.com>
- Subject: Re: [tlug] scp: how to overwrite 444 protected files
- References: <AANLkTik=H_4u8tM7Mg=ymuUh-MMXpaJd2M5wg25mYBEb@example.com> <AANLkTinb=k7KjWrLO23_X3pfohTWA-L+9DnXO40NNVTb@example.com> <AANLkTikK27-nsLYEBGA-8E9g78z4NCxwapZY=AjdWRc6@example.com> <20101112070006.GA4495@example.com> <AANLkTik0-0m=7rXetjGEsMGtxqrwXdJGK22WAGcH2sMF@example.com>
- User-agent: Mutt/1.5.18 (2008-05-17)
On Fri, Nov 12, 2010 at 09:38:16AM +0100, Josh Glover wrote: > On 12 November 2010 08:00, Christian Horn <chorn@example.com> wrote: > > > So give this a try: > > $ tar cf - file|(ssh remotehost "tar xvf -") > > Just as a matter of interest, you can dispense with all of the parens > and quoting if you are lazy: > tar cf - file | ssh remotehost tar xvf - > > Quoting to a remote shell can be tricky (you have to escape quotes or > wrap them in single quotes), so I dispense with it whenever possible. Here i mostly end up with tunneling the data over multiple hosts like this: tar cf - file | ( ssh remote1 "ssh remote2 'ssh remote3 "cd /dest && tar xvf -"'" ) but using variables here would be hell, true.. Christian
- References:
- [tlug] scp: how to overwrite 444 protected files
- From: Jean-Christian Imbeault
- Re: [tlug] scp: how to overwrite 444 protected files
- From: David Shanahan
- Re: [tlug] scp: how to overwrite 444 protected files
- From: Jean-Christian Imbeault
- Re: [tlug] scp: how to overwrite 444 protected files
- From: Christian Horn
- Re: [tlug] scp: how to overwrite 444 protected files
- From: Josh Glover
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] scp: how to overwrite 444 protected files
- Next by Date: Re: [tlug] Worth coming to Japan before getting a job?
- Previous by thread: Re: [tlug] scp: how to overwrite 444 protected files
- Next by thread: [tlug] Used commercial 802.11 equipment?
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links