in reply to (WIN) Autoflush, Perl, Sleep and Powershell
If I print with a newline at the end the output shows directly.
PS D:\tmp> perl -E'$|=1;print qq($]\n);sleep 10' > tmp.log Terminating on signal SIGINT(2) PS D:\tmp> cat .\tmp.log 5.032001 PS D:\tmp> perl -E'$|=1;print qq($]);sleep 10' > tmp.log Terminating on signal SIGINT(2) PS D:\tmp> cat .\tmp.log PS D:\tmp>
weird ...
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: (WIN) Autoflush, Perl, Sleep and Powershell
by Anonymous Monk on May 14, 2021 at 18:03 UTC | |
by LanX (Saint) on May 14, 2021 at 18:36 UTC | |
by Anonymous Monk on May 16, 2021 at 18:30 UTC |