Inspiration: the famous fork bomb in the Linux world.
Fork bomb::(){:|:&};
.
It’s like a crazy binary tree that consumes the resources of the system constantly. Fork bomb has an impact size of .
The script here can’t do that terrible damage. Keep the size , use curl to access the target page constantly, and redirect the standard output to the file read1 to keep the current terminal window clean.
#! /bin/bash
repeat(){
while :; do
$@ && repeat $@
done
}
read -p "enter URL: " url
repeat curl $url 1>read1