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
In reply to Re: (WIN) Autoflush, Perl, Sleep and Powershell
by vinoth.ree
in thread (WIN) Autoflush, Perl, Sleep and Powershell
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |