X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 2A1B011F624F for ; Mon, 10 Apr 2006 00:28:19 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: 1.56 X-Spam-Level: * X-Spam-Status: No, score=1.56 required=5 tests=[AWL=-0.360, DNS_FROM_RFC_ABUSE=0.479, DNS_FROM_RFC_POST=1.44, HTML_MESSAGE=0.001, MSGID_FROM_MTA_HEADER=0] Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id Mt8Ty0Bojz0k for ; Mon, 10 Apr 2006 00:28:16 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from hotmail.com (bay101-dav12.bay101.hotmail.com [64.4.56.84]) by postgresql.org (Postfix) with ESMTP id 5383811F675A for ; Mon, 10 Apr 2006 00:28:16 -0300 (ADT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 9 Apr 2006 20:28:14 -0700 Message-ID: Received: from 70.56.247.248 by BAY101-DAV12.phx.gbl with DAV; Mon, 10 Apr 2006 03:28:13 +0000 X-Originating-IP: [70.56.247.248] X-Originating-Email: [michaelmschmidt@msn.com] X-Sender: michaelmschmidt@msn.com From: "Michael Schmidt" To: "PostgreSQL JDBC" Subject: Re; pg_dump from Java Date: Sun, 9 Apr 2006 21:28:13 -0600 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0003_01C65C1C.81ED9AB0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: MSN 9 Seal-Send-Time: Sun, 9 Apr 2006 21:28:13 -0600 X-MimeOLE: Produced By MSN MimeOLE V9.20.0026.0800 X-OriginalArrivalTime: 10 Apr 2006 03:28:14.0926 (UTC) FILETIME=[CD5CE6E0:01C65C4E] X-Archive-Number: 200604/73 X-Sequence-Number: 15007 This is a multi-part message in MIME format. ------=_NextPart_000_0003_01C65C1C.81ED9AB0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Folks, I've continued to work on the problem (stubbornness + free time is a = deadly combination) and have gotten a solution others might find = helpful. In Java 1.5 (5.0 per their new numbering) there is a new = ProcessBuilder class. It is a different way to create a runtime process = that allows setting environmental variables. Of particular interest is = the redirectErrorStream() method, which does just that - combines stderr = with stdin. This simplifies matters - allowing the use of just one = BufferedReader and lo and behold - the Password: prompt showed up. You = can't readLine() it, but nevertheless, it is accessible. =20 Later! Michael Schmidt ------=_NextPart_000_0003_01C65C1C.81ED9AB0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Folks,
I've continued to work on the problem (stubbornness + free time is = a deadly=20 combination) and have gotten a solution others might find = helpful.  In=20 Java 1.5 (5.0 per their new numbering) there is a new ProcessBuilder=20 class.  It is a different way to create a runtime process = that=20 allows setting environmental variables.  Of particular interest is = the=20 redirectErrorStream() method, which does just that - = combines stderr with=20 stdin.  This simplifies matters - allowing the use of just one=20 BufferedReader and lo and behold - the Password: prompt showed up.  = You=20 can't readLine() it, but nevertheless, it is accessible. 
 
Later!
Michael Schmidt
------=_NextPart_000_0003_01C65C1C.81ED9AB0--