Received: from firewall.trendkft.hu (dial-230.digitel2002.hu [213.163.2.230]) by postgresql.org (8.11.3/8.11.1) with SMTP id f565UvE84334 for ; Wed, 6 Jun 2001 01:30:57 -0400 (EDT) (envelope-from rendszergazdi@trendkft.hu) Received: (qmail 1764 invoked by uid 520); 6 Jun 2001 05:41:15 -0000 Received: from rendszergazdi@trendkft.hu by firewall with qmail-scanner-0.94 (uvscan: v4.1.20/v4139. . Clean. Processed in 0.656836 secs); 06/06/2001 07:41:14 Received: from csaba.trendkft.hu (192.168.1.3) by firewall.trendkft.hu with SMTP; 6 Jun 2001 05:41:14 -0000 From: Csaba Bobak Date: Wed, 06 Jun 2001 05:31:19 GMT Message-ID: <20010606.5311931@csaba.trendkft.hu> Subject: Re: Script Hangs on To: Ariunbold Gerelt-Od CC: pgsql-admin@postgresql.org In-Reply-To: <3B1DB7BF.534EBA89@kikakuya.com> References: <3B1DB7BF.534EBA89@kikakuya.com> X-Mailer: Mozilla/3.0 (compatible; StarOffice/5.2;Win32) X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by postgresql.org id f565UwE84339 X-Archive-Number: 200106/36 X-Sequence-Number: 1574 > $port=9939; > $host=\"210.111.1.10\"; > pg=pg_connect($port,$host); > ?> > But problem is if somebody suddenly switch off > the server(210.111.1.10), the script hangs on. > How would my script check that host is open before connecting? A simple ping maybe? :-) Csaba __________ This message went through virus scan at Trend Ltd. which stated the message was clean of viri appeared before 2001.05.24.