I have a batch file that I use to check whether my sites react to a ping. If a site doesn't react, the script writes the output into a text file.
I wanted to use the same kind of script on a Linux system.
Can anyone help me translating the code so that I can use it on a Linux shell?
set list=domains.txt
If "%list%" =="" GoTo EXIT
for /f "eol=; tokens=1*" %%i in (%list%) do ping -n 1 -w 1 www.%%i >> no-response.txt;
Thanks a lot