Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 6ED1F9FB5F2 for ; Mon, 9 Apr 2007 19:26:16 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 85082-02 for ; Mon, 9 Apr 2007 19:26:13 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.227]) by postgresql.org (Postfix) with ESMTP id 8323E9FA34F for ; Mon, 9 Apr 2007 19:26:13 -0300 (ADT) Received: by wr-out-0506.google.com with SMTP id 50so957928wri for ; Mon, 09 Apr 2007 15:26:12 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Rb/p/MNz1F4pZwyB0jfF+cqAPWMG/DlZmId2M1uP5+0Sag8GsBJL5rBA3ny3mqNVVBzYYVBOiro2qPtQD5B2RUuCD91uBto02P4zPTDI5e759I7W+t4Va48kg+mD4BKDB3MoMzB5g3qHTqORQxNPCIaLHMQmWioW5hBjVx+f1cc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=e7tqmWNTpKwznqdYQtGJTaX67MDfF7tDIgKPDK8AUetu7fnHI5iU2hLVBhRvgOmofUFYj1Pcz97cXtPM4QvxzQrKOO5usuxQDSKQxlMCTDsw7hPP3WZojqu/lq7pkLNY/TKFpN2kOZ5SSc/zOYvrqBuX1WqJnSGGe4VaoWUcm28= Received: by 10.114.72.1 with SMTP id u1mr2522372waa.1176157572092; Mon, 09 Apr 2007 15:26:12 -0700 (PDT) Received: by 10.114.120.13 with HTTP; Mon, 9 Apr 2007 15:26:12 -0700 (PDT) Message-ID: <467669b30704091526v79ae044boe7217cc0777dce1f@mail.gmail.com> Date: Mon, 9 Apr 2007 15:26:12 -0700 From: "CAJ CAJ" To: "Andrew Hammond" Subject: Re: programmatic way to fetch latest release for a given major.minor version Cc: pgsql-general@postgresql.org In-Reply-To: <1176155240.221125.319880@y80g2000hsf.googlegroups.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_12792_13270251.1176157572039" References: <1176155240.221125.319880@y80g2000hsf.googlegroups.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/405 X-Sequence-Number: 112308 ------=_Part_12792_13270251.1176157572039 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 9 Apr 2007 14:47:20 -0700, Andrew Hammond < andrew.george.hammond@gmail.com> wrote: > > I'm writing a script that wants to know the latest release for a given > major.minor version. Is there some better way than parsing > http://www.postgresql.org/ftp/source/ or trying to connect to ftp > (which is invariably timing out on me today. Is that box getting > hammered or something?) and doing the parsing that? Both approaches > feel quite awkward to me. Use wget to download via HTTP (added recently). Probably wise to add a couple mirrors in your script. ------=_Part_12792_13270251.1176157572039 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

On 9 Apr 2007 14:47:20 -0700, Andrew Hammond <andrew.george.hammond@gmail.com> wrote:
I'm writing a script that wants to know the latest release for a given
major.minor version. Is there some better way than parsing
http://www.postgresql.org/ftp/source/ or trying to connect to ftp
(which is invariably timing out on me today. Is that box getting
hammered or something?) and doing the parsing that? Both approaches
feel quite awkward to me.

Use wget to download via  HTTP (added recently).  Probably wise to add a couple mirrors in your script.


------=_Part_12792_13270251.1176157572039--