|
From: | Mike Ivanov |
Subject: | Re: [Fab-user] Potential Bug with calling psql (postgres command line) |
Date: | Thu, 02 Jul 2009 15:00:22 -0700 |
User-agent: | Thunderbird 2.0.0.22 (Macintosh/20090605) |
Hi Jorge,
def postgre_test(): sudo('psql -U postgres') ..... doing the same thing from the CLI I get the proper password dialog So my question is how can I get this to work?
I think psql needs a terminal to ask for the password. Could you try this and see what happens? def postgre_test(): sudo('psql -U postgres', pty=True) Regards, Mike
[Prev in Thread] | Current Thread | [Next in Thread] |