I'm trying to debug this horribly hacky little program and it's writing a trace of all emulated instructions to a logfile which has grown to 2.5 GB in 45 min.I've only got 800 MB free. Can I truncate the file without disturbing the program writing to it? And if so, how?This is running on Cygwin over Windows 8.
truncate a log file to zero while another process is continuously writing to it
files;cygwin
echo -n '' > /path/to/the/file should replace the file with a 0-byte successor.  However, Windows file locking is nearly always a pain only when you don't want it to be.  If the program is maintaining an open file handle rather than a series of open-append-close events, this may not work.