[PLUG] how to generate a byte stream containing 0xff ?
Tyler F. Creelan
creelan at engr.orst.edu
Tue Aug 13 03:58:58 UTC 2002
Beable is a linux kernel module to provide a /dev/one. Requires tweaking
for a 2.4 kernel it seems.
http://www.bitclean.com/download.shtml
Wouldn't it be easier though to write a script to write out binary 1's? Or
read in your zeroes via dd and perform bitwise negation?
$foo=readpipe("dd if=/dev/zero bs=1 count=4"); print ~$foo;
Tyler
-----------------------------
Tyler F. Creelan
College of Engineering
Oregon State University
503-618-3101
-----------------------------
"As we enjoy great Advantages from the Inventions of others
we should be glad of an opportunity to serve others by any
Invention of ours, and this we should do freely and generously."
--Benjamin Franklin
------------------------------
On Mon, 12 Aug 2002, Galen Seitz wrote:
>
> There's /dev/zero and /dev/random, but no /dev/one. Does anyone know
> of an easy way from the command line to generate a stream of 0xff bytes?
> Clearly it would be easy to write a program to do this, but I wonder
> if there is an existing tool that will do what I want.
>
> galen
>
>
>
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
More information about the PLUG
mailing list