On Tue, Mar 11, 2003 at 10:40:08PM -0000, greg@turnstep.com wrote:
> As far as the problem of generating an empty index file, you could have
> the buildpage() function redirect the lynx output to a temporary file
> ($1.temp) and check that file for validity somehow (i.e. non-zero size
> or grep for a known string ("Postgres"?)) If it fails, send mail to
> webmaster and exit. If it succeeds, run mv $1.temp $1.html. Or use cp
> instead of mv and you have a copy of the previous page always preserved.
It seems much better to check $? on exit, and also to check stderr which
should be empty.
Same for the perl output.
--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"El conflicto es el camino real hacia la union"