Re: How to determine if psql returns ZERO to the "shell" and finished successfully?

From: Jorgen Austvik - Sun Norway <Jorgen(dot)Austvik(at)Sun(dot)COM>
To: Tommy <tommyflewwelling(at)hotmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: How to determine if psql returns ZERO to the "shell" and finished successfully?
Date: 2007-11-09 08:30:47
Message-ID: 47341AB7.2070601@sun.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tommy wrote:
> How exactly can I check to see if psql returns ZERO to the "shell"? What do
> I test for? If(Psql.exe)? or is there a variable I can check to see if it
> has been set?

If you are running Delphi on Windows (the MsgBox makes me guess so),
take a look here:
http://delphi.about.com/od/windowsshellapi/a/executeprogram.htm

-J
--

Jørgen Austvik, Software Engineering - QA
Database Technology Group

Sun Microsystems AS
Haakon VII gt. 7b
N-7485 Trondheim, Norway
Phone +47 73 84 21 10
Fax +47 73 84 21 01
Mobile +47 90 19 78 86

Attachment Content-Type Size
jorgen.austvik.vcf text/x-vcard 391 bytes

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2007-11-09 09:16:54 Re: Fix for stop words in thesaurus file
Previous Message Simon Riggs 2007-11-09 08:22:05 Re: [HACKERS] Connection Pools and DISCARD ALL