Shell Script - Refresh page every 5 minutes

0

I need to update a webpage (eg www.google.com) every 5 seconds, as I have no idea how to do this script.

Can anyone help me?

Thank you

    
asked by anonymous 22.07.2016 / 18:26

1 answer

1

If you want to call a page every 5 seconds, you can use curl for this, for example:

watch -n5 "curl http://google.com"

Run this on your terminal, and every 5 seconds the page will be called. To exit press CTRL+C .

    
21.03.2017 / 02:02