I had asked this question previously but I closed out the question prematurely:
"Is there a way to truncate a file while it is open and being written to? I'm using an application that hasn't been set up with log file rolling and I'm trying to manange it externally."
I put togther a program that uses the truncate() function which I though was working the way I wanted to, but it turns out it won't truncate a file while another program has that file open. I even tried suspending the first process, truncating the file, and then resuming the suspended process. The file size was reduced, but after I resumed the process, the file was restored to the size it had before I suspended the process (argh).
Any input much appreciated,