lkml.org 
[lkml]   [1998]   [Dec]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: /dev/one - why not /dev/repeat?
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/

\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.196 / U:0.796 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site