| From: | Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl> |
|---|---|
| To: | greg(at)turnstep(dot)com |
| Cc: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: Website build script |
| Date: | 2003-03-11 23:09:55 |
| Message-ID: | 20030311230955.GB7296@dcc.uchile.cl |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Tue, Mar 11, 2003 at 10:40:08PM -0000, greg(at)turnstep(dot)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"
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dave Cramer | 2003-03-11 23:20:09 | Request for quote |
| Previous Message | Kevin Brown | 2003-03-11 22:55:23 | Re: Roadmap for FE/BE protocol redesign |