Jin is right -- you have to flush the port. There are several ways you can do
- Close the port, explicitly or by having it gc'd.
- Flush the port with one of the following:
+ (force-output p)
- Set the port so there is no buffering after you open it:
(define tutu (open-output-file "/u/deugmi2/edesigau/bot/user2"))
(set-port-buffering tutu bufpol/none)
Now all output to the port will go straight out to the file system,
with no buffering. Char-at-a-time output will be even slower than its
usual molasses-like progress.