Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2016-08

Writeln redirect not written to disk

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Leonardo M. Ramé

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

Reply by email