Windows PowerShell + WSL Loop : Ping with Delay (10 seconds delay, 100x attempts)

 

WSL + PowerShell (100x, 30 seconds delay)

wsl
ping 12.34.56.789 -c 100 -i 30; 

 

Solution (PowerShell, Windows):

for ($i = 0; $i -lt 100; $i++) {  " - $i - "; date; ping 12.34.56.789 -n 1; date;  Start-Sleep -Seconds 10; }

 

Minimal (1 minute delay, 20 attempts, PowerShell):

for ($i = 0; $i -lt 100; $i++) {  ping 12.34.56.789 -n 1; Start-Sleep -Seconds 60; }

 

Neuen Kommentar schreiben

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Suche

Neueste Kommentare