sync

This command is part of the TclX package.

sync ?fileId?

Flushes all pending output to disk. If fileId is given, only flushes for that descriptor.