Re: /dev/one - why not /dev/repeat?

Dave Cinege (dcinege@psychosis.com)
Sat, 26 Dec 1998 14:50:35 -0500


Riley Williams wrote:

> That does exactly what my previous C-based example did, and uses
> nothing that isn't part of bash itself. As a result, assuming that
> bash is present, it will work...

dd if=/dev/zero of=/tmp/shit bs=102400 count=10
Please try to duplicate the use of '/dev/zero' with your function:

spam '0' | dd of=/tmp/shit bs=102400 count=10????
Nope.
mkfifo /tmp/tmpshit
spam '0' >tmpshit &
dd if=/tmp/tmpshit of=/tmp/shit bs=102400 count=10???
No try again. And yes I know '0' != 0 but try to get a null bit
past the shell. Best of luck. echo only knows char bytes.

I do wish you people would actually TRY your examples
before using them as a basis for argument.

If you do figure out a way to get it semi-working, please use 'time'
on it. You will find what I already know...echo is EXTREMLY slow.

time with /dev/zero:
real 0m0.021s
user 0m0.010s
sys 0m0.010s

-- 
http://www.linkscape.net/       Linkscape Internet Services   732-541-4214
http://www.linuxrouter.org/     Linux Router Project

At 19981216.11:59 Zulu, Mach 1 was broken with a 1.0080162GHz Dual CPU machine. I'm the Degenerate Overclocker that did it. http://www.psychosis.com/doa/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/