[Lazarus] Writeln redirect not written to disk

Leonardo M. Ramé l.rame at griensu.com
Thu Aug 25 14:32:30 CEST 2016


Hi, I have a simple console application that uses fpAsync and WriteLn to 
output its events. Now, when I redirect its output to stdout to log to a 
file it doesn't write anything.

For example, I call my app this way:

./myapp >> myapp.log

Also I tried

./myapp >> myapp.log 2>&1

Also using "tee"

./myapp | tee myapp.log

But I can't make it write anything to the log file.

Of course if I run it manually it writes everything to the console.

Any hint?

Regards,
-- 
Leonardo M. Ramé
Medical IT - Griensu S.A.
Av. Colón 636 - Piso 8 Of. A
X5000EPT -- Córdoba
Tel.: +54(351)4246924 +54(351)4247788 +54(351)4247979 int. 19
Cel.: +54 9 (011) 40871877


More information about the Lazarus mailing list