Is creation of another set of OpenVistA routines, in /usr/local
directory,
necessary (in creating the two implementations) ? How can the two implementations be made to access two different global
directories and not the one provided in /usr/local/OpenVistA/g?
Usha ----- Original Message ----- From: "Nancy Anthracite" <[EMAIL PROTECTED]> To: Sent: Saturday, September 17, 2005 8:21 PM Subject: Re: [Hardhats-members] GT.M question -- making a test environment > I think the mumps.gld contains a path to the original mumps.dat within it. > > On Saturday 17 September 2005 10:13 am, Kevin Toppenberg wrote: > I am trying to set up two vista environments -- my existing production > one, and another mirror one in which I can test the patching process. > > But I am getting a database problem when I do it. I'll include a > screen log below > > The production system uses these directories: > > /usr/local/gtm/ <-- gtm routines > /usr/local/OpenVistA/ <--- contains VistA routines > /var/local/OpenVistA_UserData/ <--- contains database and custome routines > > Here is the startup script I use to get into my production system: > > #!/bin/bash > echo " " > echo "GT.M VistA Startup Script" > . /var/local/OpenVistA_UserData/setup_vista_env > echo "Entering GT.M system now... " > #----------------------------- > stty susp \000 > if [ $# -gt 0 ] > then > echo "Automatically launching program: $1" > $gtm_dist/mumps -r $1 > else > $gtm_dist/mumps -dir > fi > #$gtm_dist/mumps -dir > echo " " > echo "Leaving GT.M, returning to Linux..." > echo " " > > And here is the script that sets up the environment variables: > > #----------------------------- > export m2web="/usr/local/m2web" > export gtm_dist=/usr/local/gtm > export gtm_log=/var/gtm/log > export gtm_vista=/var/local/OpenVistA_UserData > export gtm_vista_prod=/usr/local/OpenVistA > export gtmgbldir=$gtm_vista/g/mumps.gld > export vista_home=$gtm_vista > > export gtmroutines="$gtm_vista/o($gtm_vista_prod/r $gtm_vista/r > $gtm_dist) $gtm_dist() $m2web/o($m2web/w)" #//kt > # export gtmroutines="$gtm_vista/o($gtm_vista_prod/r $gtm_vista/r > $gtm_dist) $gtm_dist()" > export EDITOR="vim" > PATH=$PATH:$gtm_dist > #----------------------------- > echo " " > echo "-------------------------" > echo "FYI, here are relevant defined variables:" > echo > echo "gtm_dist="$gtm_dist > echo "gtm_log="$gtm_log > echo "gtm_vista="$gtm_vista > echo "gtm_vista_prod="$gtm_vista_prod > echo "gtmgbldir="$gtmgbldir > echo "vista_home="vista_home > echo "gtmroutines="$gtmroutines > echo " " > #----------------------------- > > > So I copied directories (recursively) as follows: > > /usr/local/OpenVistA > /usr/local/OpenVistA_TEST <-- new > /var/local/OpenVistA_UserData > /var/local/OpenVistA_TEST <-- new > > (I did not copy /usr/local/gtm) > > I created a second startup script like this (the key difference is > the directory referenced to setup the environmental variables): > > #!/bin/bash > > echo " " > echo "GT.M VistA Startup Script" > echo " " > echo "*** TEST ENVIRONMENT ***" > echo " " > > . /var/local/OpenVistA_TEST/setup_vista_env > > echo "Entering GT.M system now... " > echo " " > echo "*** TEST ENVIRONMENT ***" > echo " " > #----------------------------- > > stty susp \000 > > if [ $# -gt 0 ] > then > echo "Automatically launching program: $1" > $gtm_dist/mumps -r $1 > else > $gtm_dist/mumps -dir > fi > #$gtm_dist/mumps -dir > > echo " " > echo "*** TEST ENVIRONMENT ***" > echo "Leaving GT.M, returning to Linux..." > echo " " > > > And now here is a screen log of the problem that I am having: > > [EMAIL PROTECTED] kdt0p]$ sh runvistaTEST > > GT.M VistA Startup Script > > *** TEST ENVIRONMENT *** > > > > ------------------------- > FYI, here are relevant defined variables: > > gtm_dist=/usr/local/gtm > gtm_log=/var/gtm/log > gtm_vista=/var/local/OpenVistA_TEST > gtm_vista_prod=/usr/local/OpenVistA_TEST > gtmgbldir=/var/local/OpenVistA_TEST/g/mumps.gld > vista_home=vista_home > gtmroutines=/var/local/OpenVistA_TEST/o(/usr/local/OpenVistA_TEST/r > /var/local/OpenVistA_TEST/r /usr/local/gtm) /usr/local/gtm() > /usr/local/m2web/o(/usr/local/m2web/w) > > Entering GT.M system now... > > *** TEST ENVIRONMENT *** > > > GTM>d ^XUP > > Setting up programmer environment > GTM>w $ZSTATUS > 150379346,XUP+7^XUP,%GTM-E-DBIDMISMATCH, Database file > /var/local/OpenVistA_UserData/g/mumps.dat id (region > /var/local/OpenVistA_TEST/g/mumps.dat) does not match file id in > shared memory (id = 655360). ,Ensure region is properly > rundown.,%GTM-I-TEXT, Fileid of database file doesn't match fileid in > shared memory > GTM> > > > I hesitate to simply rundown the database, because it seems that the > test environment might be somehow liked to the production environment. > And I don't want to modify that. > > Can anyone help? > > Thanks > Kevin > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Hardhats-members mailing list > Hardhats-members@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/hardhats-members > > -- > Nancy Anthracite > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Hardhats-members mailing list > Hardhats-members@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/hardhats-members > > Make sure YOUR emails don't get lost! Download Mailinfo here |
- Re: [Hardhats-members] GT.M question -- making a test environm... Usha