Subject Re: [firebird-support] sysdba versus other user
Author Milan Babuskov
Mike Dewhirst wrote:
> Sorry Helen - I wasn't clear enough. I was calling ddl scripts
> (actually, empddl.sql downloaded from the apress site and cut into
> separate parts) from a bash script which set ISC_USER and ISC_PASSWORD.
> I want to put the ddl scripts under version control without including
> passwords. The bash script won't be versioned until I figure out how to
> make it request the password when it runs.

You can use "read" to get value into variable.

read -p "Enter username: " ISC_USER
read -p "Enter password: " ISC_PASSWORD

> It uses export and those ISC_
> vars evaporate when it exits.

If you wish them to stay, you can use "source" in the script calling it. Or
call it from bash directly:

source ./script.sh

I know this is OT, but I hope it helps.

--
Milan Babuskov
http://fbexport.sourceforge.net
http://www.flamerobin.org