Re: �Q� create database in shell script
Posted in 1995
greg@orgchem.weizmann.ac.il (Gregory Karpinsky) writes:
>Hi,
>I'm using Informix On-Line 5.01 as a database server. The only thing
>I use Informix directly is: run SQL in dbaccess "create database XXX
>with log ansi". All the rest is done through the client program.
>Is there a way to do this in a shell script, w/o dbaccess?
You could, of course, use ESQL or 4GL, but why not a script which:
echo "create database $1 with log ansi" | dbaccess - -
I won't ask why you're creating mode-ansi databases, but will caution
that you know the ramifications of doing so.
___ ___ Senior Consultant
/ ) __ . __/ /_ ) _ _ __ Informix Software Inc. (303) 850-0210
_/__/ (_(_ (/ / (_(_ _/__) (-' ~/ '(_- 5299 DTC Blvd #740 Englewood CO 80111
>Thanx,
>Gregory Karpinsky
>greg@orgchem.weizmann.ac.il
>+972-8-642329
>---------------------------