X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7C1ADD1B1D1 for ; Thu, 8 Jul 2004 13:07:43 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 37112-03 for ; Thu, 8 Jul 2004 16:07:32 +0000 (GMT) Received: from web21326.mail.yahoo.com (web21326.mail.yahoo.com [216.136.175.215]) by svr1.postgresql.org (Postfix) with SMTP id BE8D6D1B1B3 for ; Thu, 8 Jul 2004 13:07:30 -0300 (ADT) Message-ID: <20040708160730.73409.qmail@web21326.mail.yahoo.com> Received: from [208.46.129.146] by web21326.mail.yahoo.com via HTTP; Thu, 08 Jul 2004 09:07:30 PDT Date: Thu, 8 Jul 2004 09:07:30 -0700 (PDT) From: Hemapriya Subject: Connect to postgres from a script using password To: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.9 tagged_above=0.0 required=5.0 tests=FROM_ENDS_IN_NUMS X-Spam-Level: X-Archive-Number: 200407/103 X-Sequence-Number: 14171 Hi, Can anyone tell me how to connect to postgres from a shell script using password. If i use psql -UUser db -W option it prompts for password everytime.. Is there anyway we can have the password included in psql login command.? Thanks Priya __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail