A CGI page represents many parameters which are refreshed every hour using batch scripts. When user refreshes the page he gets 404 error which is right as the batch file deletes the current file. I need a script that will detect this situation and recreate the same page for the user.

Thanks in advance