Re: sed not working on /proc files

Richard B. Johnson (root@chaos.analogic.com)
Wed, 5 May 1999 13:22:44 -0400 (EDT)


On Wed, 5 May 1999, Rogier Wolff wrote:
[SNIPPED]
>
> The "files" in /proc should in my opinion not pretend to be files:
> they should be "pipes". Many programs stat their input file, and if
> they get "normal file", they have all sorts of assumptions on tricks
> they can do.
>
> For example, "wc -c" will just return the st_size of the file, instead
> of doing all the work that is normally involved in counting the file.
>
>
> Roger.
>
Just for kicks, I changed them all to pipes, i.e., named FIFOS. This
broke most of the tools like 'ps`. I gave up.

Cheers,
Dick Johnson
***** FILE SYSTEM WAS MODIFIED *****
Penguin : Linux version 2.2.6 on an i686 machine (400.59 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.

-
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/