Shell Script - Refresh page every 5 minutes

Asked

Viewed 309 times

1

I need to update a web page (e.g., www.google.com) every 5 seconds because I have no idea how to do this script.

someone can help me ?

thank you

  • If you own the page, put this in the Header: <META HTTP-EQUIV="refresh" CONTENT="5">

  • Good afternoon Cantoni, some information was missing. It’s what I needed to update a web page, like google.com

1 answer

2

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

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

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.