> On 23 Aug 2016, at 10:06, Gerhard Schmidt <estartu at ze.tum.de> wrote: > > Hi, > > i'm quite often use tar to copy files using > > tar cf - /some/dir | (cd /dest/dir; tar xvvf - )the ?new? way: tar cf - /some/dir | tar xvvd - -C /dest/dir which of course does not explain way your version hangs, but this one is cleaner, and btw, don?t include /.> > the files are copied without a problem but the reading tar never > terminates and so the whole command never terminates. > > This is new since FreeBSD 10. > > Regards > Estartu > > > -- > ---------------------------------------------------------- > Gerhard Schmidt | E-Mail: schmidt at ze.tum.de > Technische Universit?t M?nchen | Jabber: estartu at ze.tum.de > WWW & Online Services | > Tel: +49 89 289-25270 | PGP-PublicKey > Fax: +49 89 289-25257 | on request > _______________________________________________ > freebsd-stable at freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"
> On 23 Aug 2016, at 10:18, Daniel Braniss <danny at cs.huji.ac.il> wrote: > >> >> On 23 Aug 2016, at 10:06, Gerhard Schmidt <estartu at ze.tum.de <mailto:estartu at ze.tum.de>> wrote: >> >> Hi, >> >> i'm quite often use tar to copy files using >> >> tar cf - /some/dir | (cd /dest/dir; tar xvvf - ) > the ?new? way: > tar cf - /some/dir | tar xvvd - -C /dest/dirs/xvvd/xvvf/> which of course does not explain way your version hangs, but this one is cleaner, and btw, don?t > include /. > >> >> the files are copied without a problem but the reading tar never >> terminates and so the whole command never terminates. >> >> This is new since FreeBSD 10. >> >> Regards >> Estartu >> >> >> -- >> ---------------------------------------------------------- >> Gerhard Schmidt | E-Mail: schmidt at ze.tum.de >> Technische Universit?t M?nchen | Jabber: estartu at ze.tum.de >> WWW & Online Services | >> Tel: +49 89 289-25270 | PGP-PublicKey >> Fax: +49 89 289-25257 | on request >> _______________________________________________ >> freebsd-stable at freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-stable >> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org" > > _______________________________________________ > freebsd-stable at freebsd.org <mailto:freebsd-stable at freebsd.org> mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable <https://lists.freebsd.org/mailman/listinfo/freebsd-stable> > To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org <mailto:freebsd-stable-unsubscribe at freebsd.org>"
Am 23.08.2016 um 09:18 schrieb Daniel Braniss:> >> On 23 Aug 2016, at 10:06, Gerhard Schmidt <estartu at ze.tum.de> wrote: >> >> Hi, >> >> i'm quite often use tar to copy files using >> >> tar cf - /some/dir | (cd /dest/dir; tar xvvf - ) > the ?new? way: > tar cf - /some/dir | tar xvvd - -C /dest/dir > which of course does not explain way your version hangs, but this one is cleaner, and btw, don?t > include /.that's very strange. It's working, but doesn't solve another related problem. When i pipe the tar thru nc a have the same problem as my version. And it's no difference if there is a tar c an the receiving end of nc or just a '> file.tar' Regards Estartu -- ------------------------------------------------- Gerhard Schmidt | E-Mail: schmidt at ze.tum.de TU-M?nchen | Jabber: estartu at ze.tum.de WWW & Online Services | Tel: 089/289-25270 | Fax: 089/289-25257 | PGP-Publickey auf Anfrage