agora inbox for [email protected]
help / color / mirror / Atom feedFrom: shaunc <[email protected]>
To: [email protected]
Subject: send password to pg_dump
Date: Sun, 21 Jan 2007 00:28:37 -0800 (PST)
Message-ID: <[email protected]> (raw)
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.
view thread (3+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: send password to pg_dump
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox