Please help what is SSH commands to do this: run a command 20 times, break 2 seconds, and repeated again so like this will give rep +1 for all answered
This should work: while true; do x=20 ; while [[ $x -ge "1" ]] ; do wget http://www.domain.com ; x=$(($x-1)) ; done ; sleep 2 ; done Code (markup): Although, on a side note, unless your intent is to have tons of files downloaded to the directory you run this in, I would recommend modifying your wget command to include a "-O /dev/null". Below is the modified loop. while true; do x=20 ; while [[ $x -ge "1" ]] ; do wget -O /dev/null http://www.domain.com ; x=$(($x-1)) ; done ; sleep 2 ; done Code (markup):