Bash Script to reboot server automatically

Job ID: 33721559

Budget: $10 – $30 USD

Need a bash script attached to cron which is going to perform these tasks every 5 mins:
1 - Wget a website
2 - Search for a particular string
2A - If the string is detected: delete the downloaded file and restart the server
2B - If the string is not detected: delete the downloaded file
3 - Free the used resources
Related categories: Script Install Linux Shell Script Ubuntu