Search Postgresql Archives

Re: assigning password from script

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

 



Thanks for your replay Scott,

I am using just sql script
and there is no option like pwd with createuser command

With Regards
Ashish...

----- Original Message ----- From: "Scott Marlowe" <scott.marlowe@xxxxxxxxx>
To: "Ashish Karalkar" <ashish.karalkar@xxxxxxxxxxxxxxxxx>
Sent: Monday, July 02, 2007 11:17 AM
Subject: Re: [GENERAL] assigning password from script


On 7/2/07, Ashish Karalkar <ashish.karalkar@xxxxxxxxxxxxxxxxx> wrote:


Hello All,

I want to create a user through script and dont want user to assign password interactively, I want it to be assigned through some file or anything else

some this like

createuser -P ***** OR createuser -P <file >

Is there any way?

What scripting language are you using?

in bash you can do something like:

pwd=`cat /home/pgsql/password`

to get it.



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux