Re: Disable wrilten buf in docker

2024-03-13 Thread zoujiaqing via Digitalmars-d-learn
On Tuesday, 12 March 2024 at 15:44:08 UTC, Steven Schveighoffer wrote: On Tuesday, 12 March 2024 at 06:36:09 UTC, zoujiaqing wrote: Hi, my application use writeln in docker don't display. Python add -u disable it.

Re: Disable wrilten buf in docker

2024-03-12 Thread Steven Schveighoffer via Digitalmars-d-learn
On Tuesday, 12 March 2024 at 06:36:09 UTC, zoujiaqing wrote: Hi, my application use writeln in docker don't display. Python add -u disable it. https://stackoverflow.com/questions/29663459/why-doesnt-python-app-print-anything-when-run-in-a-detached-docker-container Use setvbuf to switch to

Re: Disable wrilten buf in docker

2024-03-12 Thread john rath via Digitalmars-d-learn
I'm glad you find it helpful! If you have any more questions, whether it's about fashion or anything else, feel free to ask. I'm here to assist you with any information or insights you might need.https://vjackets.com/

Re: Disable wrilten buf in docker

2024-03-12 Thread zoujiaqing via Digitalmars-d-learn
On Tuesday, 12 March 2024 at 06:39:40 UTC, Richard (Rikki) Andrew Cattermole wrote: On D's side you can use ``stdout.flush;`` to force it to flush. I don't think there is a way to force flushing via CLI. OK, thank you! Problem solved! Use code: ```D std.stdio.stdout.flush(); ```

Re: Disable wrilten buf in docker

2024-03-12 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
On D's side you can use ``stdout.flush;`` to force it to flush. I don't think there is a way to force flushing via CLI.

Disable wrilten buf in docker

2024-03-12 Thread zoujiaqing via Digitalmars-d-learn
Hi, my application use writeln in docker don't display. Python add -u disable it. https://stackoverflow.com/questions/29663459/why-doesnt-python-app-print-anything-when-run-in-a-detached-docker-container