Re: [HACKERS] Website build script

2003-03-11 Thread Alvaro Herrera
On Tue, Mar 11, 2003 at 10:40:08PM -, [EMAIL PROTECTED] 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

Re: [HACKERS] Website build script

2003-03-11 Thread Dave Page
> -Original Message- > From: Gavin Sherry [mailto:[EMAIL PROTECTED] > Sent: 11 March 2003 22:38 > To: Dave Page > Cc: [EMAIL PROTECTED] > Subject: Re: [HACKERS] Website build script > > > Seems possible that Lynx timed out and generated and sh left >

Re: [HACKERS] Website build script

2003-03-11 Thread greg
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 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 ("Post

Re: [HACKERS] Website build script

2003-03-11 Thread Gavin Sherry
Seems possible that Lynx timed out and generated and sh left only an empty file. Guard against this by writing the output of lynx to a temporary file and either check it for stuff you expect to be there (?) or for some reasonable size. There are better was to do this, of course... Gavin ---