subprocess pipe

Tim Harig usernet at ilthio.net
Sun Nov 14 14:51:40 EST 2010


On 2010-11-14, Tim Harig <usernet at ilthio.net> wrote:
> On 2010-11-14, Camille Harang <mammique at garbure.org> wrote:
>> # pg_dump prompts for password so I inject it in stdin.
>> pgsql.stdin.write('MY_PASSWORD' + '\n')
>
> For security reasons, some programs use direct access to the TTY system
> for password entry rather then reading from stdin.  Most of these programs
> provide another access mechanism that can be used for authentication
> (ie public keys or storing the password in a permission restricted
> configuration file.[) for scripts.

.pgpass ?



More information about the Python-list mailing list