2 ms·
There is an unusual (ab)use of ping that I hope no-one here needs but just in case; I and a tech was doing some dos scripting (in windows) at a client and we ne
by tempguy9999 7y ago
There is an unusual (ab)use of ping that I hope no-one here needs but just in case; I and a tech was doing some dos scripting (in windows) at a client and we needed short delays. We couldn't find anything in dos, but a web search suggested an obscure but natty trick - pinging localhost.
ping -n <seconds> 127.0.0.1
It worked (edit: I couldn't stop laughing). To be fair, I've used it and its big brother traceroute (very useful!) for its designed purpose.
- user5994461 7y agochoice /T 1 /D Y Standard Windows NT command to sleep 1 second. This is actually intended to let the user select an option Yes/No and default after 1 second without answer.