daddio
02-21-2006, 03:17 AM
I have some huge files in /home/spool/mail (on a RAQ2). These are predominantly user email files which periodically clear out as users check their mail. But sometimes they don't (I've also discovered that these boxes don't clear out if you have both forwarding and autresponder set in the GUI . . . go figure).
Anyway, I learned some time back how I can "clear out" such files (without removing them) by doing this:
cat /dev/null > filename
The way I understand it, this empties the file without breaking the pipe. And, so far, this has worked fine with files that I know I can empty safely.
My problem is that the two largest files in there (one is 800 MB!) are named "admin" and "adm".
In other words, I'm scared. :-)
What I want to know is if it is safe to cat /dev/null these files as well, or if doing so will cause some inherent system problems that I'm just unaware of. I suspect that they are just filled with old email messages also (like maybe every message that ever came into the server). But due to my ignorance, I feel like I should be particularly careful. Any guidance on this would be greatly appreciated. Thanks.
Fred
Anyway, I learned some time back how I can "clear out" such files (without removing them) by doing this:
cat /dev/null > filename
The way I understand it, this empties the file without breaking the pipe. And, so far, this has worked fine with files that I know I can empty safely.
My problem is that the two largest files in there (one is 800 MB!) are named "admin" and "adm".
In other words, I'm scared. :-)
What I want to know is if it is safe to cat /dev/null these files as well, or if doing so will cause some inherent system problems that I'm just unaware of. I suspect that they are just filled with old email messages also (like maybe every message that ever came into the server). But due to my ignorance, I feel like I should be particularly careful. Any guidance on this would be greatly appreciated. Thanks.
Fred
