mikehershey32 <[EMAIL PROTECTED]> wrote:
> Is there a way that i can make new output to the file overwrite the
> old file content without stopping the program and restarting the script or
> rotating the log file?
{
python -c '
import os
import time
while True:
time.sleep(1)
os.lseek(1, 0, 0)
' &
btlaunchmany.py
} > output-file
Here, python and btlaunchmany.py both inherit the same file descriptor
from a single shell redirection, which means they share the file
position - changing it in one affects the other.
paul