Forum Moderators: DixonJones
Other sugestions where given in this thread [webmasterworld.com].
Sorry I can't help with deleting the old logfile. Some scripting professional might help here.
Do you have shell access on the Raq?
To create several smaller files from a large one, use this command:
split -5000 <file> <prefix>
where <file> is the name of your original file.
This will create a number of files with names like this:
<prefix>aa
<prefix>ab
<prefix>ac
...
So, if you use "new-" as <prefix>, then the files will be named "new-aa", "new-ab", etc.
Each of those files will contain 5000 lines of the original file, or any other number, if you change the first parameter accordingly. With the standard extended log file format, 5000 lines take approximately one megabyte. If you have an idea about the largest file size you can handle, then it may be practical to increase the size to that limit, so that you'll get fewer files.
I have a hard time imagining that deleting the file runs into a timeout. Are you sure the removal failed, or did it finish while your login was cut off?
If all else fails, you can try this:
echo "" ¦ cat > <file>
The first ">" is a literal "larger than" character, and <file> is again your file name. This will write an EOF at the beginning of the file, reducing its size to zero. After that, removing it shouldn't be a problem.