Script that automatically generates HTML

hi I have a script with HTML code and am currently generating the html page everytime using genWebsite.sh > startPage.html

Is it possible to have a loop at the begining of the script to run this command every minute so an updated HTML page is displayed or could someone suggest an alternative method?

thanks

You can create a cron job to run this script every minute.
Do

crontab -e

and make the below entry in the file:

* * * * * /path/to/script > /path/to/html/file 

Save and exit the file.

This will create a cron job for the script

sorted i had to change the directory in one of my files