in reply to (WIN) Autoflush, Perl, Sleep and Powershell
I am using perl 5.28, but I get the log getting written after sleep completes, I tried different timegap
PS C:\Users\VinothG> perl -E"$|=1;print $];sleep 10" >.\tmp.log PS C:\Users\VinothG> cat .\tmp.log 5.028001 PS C:\Users\VinothG> perl -E"$|=1;print $];sleep 20" >.\tmp.log PS C:\Users\VinothG> cat .\tmp.log 5.028001 PS C:\Users\VinothG> perl -E"$|=1;print $];sleep 30" >.\tmp.log PS C:\Users\VinothG> cat .\tmp.log 5.028001 PS C:\Users\VinothG> perl -E"$|=1;print $];sleep 40" >.\tmp.log PS C:\Users\VinothG> cat .\tmp.log 5.028001 PS C:\Users\VinothG> perl -E"$|=1;print $];sleep 100" >.\tmp.log PS C:\Users\VinothG> cat .\tmp.log 5.028001
My PowerShell Version
PS C:\Users\VinothG> Get-Host | Select-Object Version Version ------- 5.1.18362.1474
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: (WIN) Autoflush, Perl, Sleep and Powershell
by LanX (Saint) on May 14, 2021 at 16:35 UTC | |
by karlgoethebier (Abbot) on May 17, 2021 at 16:48 UTC | |
by LanX (Saint) on May 17, 2021 at 17:27 UTC |