I have a long-running process with stdout redirected to a file. E.g.:

```
./my-script.sh > file.txt &

```

Part of the stdout is still cached, but I would like to flush it to the file, to see the results earlier. Is there a way to do it?