EvansRasyid / busybox-android

Automatically exported from code.google.com/p/busybox-android
0 stars 0 forks source link

count option not respected in dd command #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
su
mkfifo /cache/myfifo
dd if=/dev/block/mmcblk0 of=/cache/myfifo bs=1M count=1

What is the expected output? What do you see instead?
It actually seems to output 1 byte and doesn't wait for the fifo to be read. 
Removing the last part "count=1" then works as should, but of course can't stop 
it at a desired size.

What version of the product are you using? On what operating system?
Busybox Pro 1.20.1
Galaxy Nexus GT-I9250 with Jelly Bean

Original issue reported on code.google.com by coldpizz...@gmail.com on 1 Jul 2012 at 1:54

GoogleCodeExporter commented 8 years ago
On ubuntu it works perfectly:

mkfifo myfifo
dd if=/dev/urandom of=myfifo bs=1M count=1 &
cat myfifo > urandom.data
jobs

Original comment by coldpizz...@gmail.com on 15 Jul 2012 at 9:53