Re: connect to postgres from shell scripts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Take a look at the .pgpass file, some info at:

http://www.postgresql.org/docs/8.0/interactive/libpq-pgpass.html

Doing that, your password is still as secure as your .pgpass file,
which hopefully is more secure than your script.



-----Original Message-----
From: pgsql-admin-owner@xxxxxxxxxxxxxx
[mailto:pgsql-admin-owner@xxxxxxxxxxxxxx]On Behalf Of Hemapriya
Sent: Monday, August 22, 2005 10:43 AM
To: pgsql-admin@xxxxxxxxxxxxxx
Subject: [ADMIN] connect to postgres from shell scripts


Hi,

I would like to know how to connect to postgres from
shell scripts using a password protected user.

Is there a way to embed the password in psql login.
It keeps prompting for the passwords.

Any hint is appreciated.

Thanks
Priya


		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux