Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id B7C4C9FB1EA for ; Sun, 21 Jan 2007 04:28:42 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 72533-10 for ; Sun, 21 Jan 2007 04:28:39 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by postgresql.org (Postfix) with ESMTP id 60FF49FA5D8 for ; Sun, 21 Jan 2007 04:28:39 -0400 (AST) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1H8Y45-0001vV-Rj for pgsql-hackers@postgresql.org; Sun, 21 Jan 2007 00:28:37 -0800 Message-ID: <8473174.post@talk.nabble.com> Date: Sun, 21 Jan 2007 00:28:37 -0800 (PST) From: shaunc To: pgsql-hackers@postgresql.org Subject: send password to pg_dump MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: shaun@cranedata.us X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/1001 X-Sequence-Number: 96902 Hello, I'm trying to run pg_dump programmatically, and I'm wondering how I can send it a password. I'm running it with a system() call in a child process, and sending the password in from the parent process on stdin, but somehow pg_dump always finds out how to ask my terminal for a password. How do I fool it? (I need this to work in linux... in python would be preferable too.) Thanks for any advice. - Shaun -- View this message in context: http://www.nabble.com/send-password-to-pg_dump-tf3048210.html#a8473174 Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.