[BusyBox] tar and Broken pipe!

Steven Scholz steven.scholz at imc-berlin.de
Fri Nov 14 12:53:22 UTC 2003


Hi there,

I am playing 'round with the shell skript version of iPKG. The script ipgk 
contains a line:

       (cd $IPKG_TMP/$pkg/data/; tar cf - . | (cd $owd; cd $dest; tar xf -))

used to copy the tree $IPKG_TMP/$pkg/data/ somewhere. But I do get a "Broken 
pipe" when using this (busybox v1.00-pre3, today's CVS).

I tried it directly in the ash:

cd /tmp/source; tar cf - . | (cd /tmp/target; tar xf -)		and
(cd /tmp/source; tar cf - . | (cd /tmp/target; tar xf -))

and I also get "Broken pipe". Funny enough not everytime I call it:

~ # (cd /tmp/source; tar cf - . | (cd /tmp/target; tar xf -))
~ # (cd /tmp/source; tar cf - . | (cd /tmp/target; tar xf -))
Broken pipe
~ # (cd /tmp/source; tar cf - . | (cd /tmp/target; tar xf -))
~ # (cd /tmp/source; tar cf - . | (cd /tmp/target; tar xf -))
~ # (cd /tmp/source; tar cf - . | (cd /tmp/target; tar xf -))
~ # (cd /tmp/source; tar cf - . | (cd /tmp/target; tar xf -))
~ # (cd /tmp/source; tar cf - . | (cd /tmp/target; tar xf -))
Broken pipe
~ # (cd /tmp/source; tar cf - . | (cd /tmp/target; tar xf -))
~ # (cd /tmp/source; tar cf - . | (cd /tmp/target; tar xf -))
~ # (cd /tmp/source; tar cf - . | (cd /tmp/target; tar xf -))
~ # (cd /tmp/source; tar cf - . | (cd /tmp/target; tar xf -))
Broken pipe
~ # (cd /tmp/source; tar cf - . | (cd /tmp/target; tar xf -))
Broken pipe

Using "cd /tmp/source; tar cf - . | (cd /tmp/target; tar xf -)" seems to produce 
more "Broken pipes"...

Any ideas?

Thanks!

Steven





More information about the busybox mailing list