Todd C. Miller
Todd.Miller at courtesan.com
Thu Feb 20 12:41:41 EST 2003
In message <6808DCE827EBD5119DFB0002A58EF4DA02F5BBD4 at hqempn06.agedwards.com>
so spake "Boehler, Joe" (Joe.Boehler):
> Thanks. It turns out that the logs in question (there are several) quit
> working properly when I cat /dev/null to them. I don't really understand why
> directing stdout doesn't affect them the way /dev/null does, but I can't use
> /dev/null to zero them.
Something probably has the files open at the time. If you have
perl, you could try:
perl -e 'truncate(/var/opt/OV/share/databases/eventdb/log_2, 0)'
More information about the sudo-users