Linux : CPU hammer stress testing script

Here is a simple shell script to load & hammer the CPU using awk. The script does simple recursive mathematical calculations and thus CPU load peaks up on higher values passed to loadserver.sh.

The script loadserver.sh :

Before script execution :

Script execution :

Check out the load :