home | list info | list archive | date index | thread index

[OCLUG-Tech] Re: Something is eating /dev/null

Charles MacDonald wrote:
> Somehow my dev null device keep turning into a regular file..
> Anyone have any idea of what is going on, or what I should do about it?

Perhaps someone gave "/dev/null" as an output file for some logging
function, and the program the rolls the log file didn't check for the
special case.

It might work to look for /dev/null in all the config files under, say,
/etc/ and see if anything turns up:

   # find /etc/ -type f -print0 \
   	| xargs -0 grep -e /dev/null \
	| grep -v -e '[<>] */dev/null' \
	| less

-IAN!  Ian! D. Allen   Ottawa, Ontario, Canada
       EMail: idallen [ at ] idallen [ dot ] ca   WWW: http://www.idallen.com/
       College professor (Linux) via: http://teaching.idallen.com/
       Support free and open public digital rights:  http://eff.org/