Nancy Anthracite wrote:
> Could someone please email me the VistA start up script that Bhaskar 
> distributes with the VivAs and Semi-VivAs please.  I am not talking about an 
> installation script, but a script that is used after the installation is 
> complete.  I have not used it, but I think it is called vista .

The installation script works for running VistA, too. My "zista" version
is better, IMHO, because it works with just dialog in text mode or with
Xdialog.  See the Wiki, below.

but you probably want this:
http://openforum.worldvista.org/~forum/index.php?title=Installation_How_To_VistA_GT.M_Linux
The end of the section is Mark Steet's
"Manual Installation of OpenVista SemiVivA FOIA Gold source on Linux".

There was also a good thread between Mark and Bhaskar that predates the
Wiki:
From: Bhaskar, KS <[EMAIL PROTECTED]>
  Re: SemiVivAFOIAGold20050212
      2005-03-08 15:09

 > 2.  I would rather not utilize the vista script with Xdialog as I am
accessing
 > the server with no X binaries or libraries installed.  Can I do this
with
 > SemiVivA?

 [KSB] Short answer: yes.

 Long answer: you don"t need to use the /usr/local/OpenVistA/vista script
 to run VistA on GT.M, on either VivA or SemiVivA.  All it does is set up
 a bunch of environment variables using Xdialog for user interaction.
 Check the script for the environment variables it sets (and note that it
 calls /usr/local/gtm/gtmprofile).  Minimally, you will need to set:

 $vista_home (needed if you wan to use the global directory
 at /usr/local/OpenVistA/g/mumps.gld; tnot needed if you create your own
 global directory) to point to something
 like /home/mark/myVistA/VistA20050212 if the database is
 at /home/mark/myVistA/VistA20050212/g/mumps.dat, dynamically created
 source routines are in the directory /home/mark/myVistA/VistA20050212/r
 and dynamically compiled object files are to go
 in /home/mark/myVistA/VistA20050212/o.

 $gtm_dist to point to /usr/local/gtm, the directory where GT.M is
 installed.

 $gtmgbldir to point to the global directory,
 i.e., /usr/local/OpenVistA/g/mumps.gld.

 $gtmroutines to point to
 "/home/mark/myVistA/VistA20050212/o(/home/mark/myVistA/VistA20050212/r)
/usr/local/OpenVistA/o(/usr/loca/OpenVistA/r) $gtm_dist"

 So the following should allow you to execute VistA successfully:

 To install Vista (look out for inopportune line breaks caused by mail):

   mkdir -p /home/mark/myVistA/VistA20050212/{g,o,r}
   gzip -d </usr/local/OpenVistA/g/mumps.dat.gz
 >/home/mark/myVistA/VistA20050212/g/mumps.dat

 To run VistA:

   source /usr/local/gtm/gtmprofile
   export vista_source=/usr/local/OpenVistA
   export vista_home=/home/mark/myVistA/VistA20050212
   export gtmgbldir=$vista_source/g/mumps.gld
   export gtmroutines="$vista_home/o($vista_home/r)
 $vista_source/o($vista_source/r) $gtm_dist"
   $gtm_dist/mumps -dir

 Have fun!

 -- Bhaskar

regards,
jlz

#!/bin/bash
# Install and run OpenVistA for the OpenVistA Vivum live CD.
# GT.M[TM] is assumed to be on the CD at /usr/local/gtm.
# OpenVistA distribution is assumed to be on the CD at /usr/local/OpenVistA.
#
# This script is placed in the public domain by K.S. Bhaskar
#
# For demonstration purposes only, and not for production use.
# The user assumes all responsibility for using this script.
#
# Revision history
# 20040103  0.1   K.S. Bhaskar    Initial Creation
# 20040119  0.11  K.S. Bhaskar    Make mount command sudo
# 20040122  0.12  K.S. Bhaskar    Remove mount command and require directories 
be mounted in advance
# 20040605  0.2   K.S. Bhaskar    Put all source files in one directory
# 20040627  0.3   K.S. Bhaskar    Default gtm_source and vista_source based on 
package defaults
# 20050305  0.31  K.S. Bhaskar    Default base install directory to $PWD

# Default locations for GT.M and OpenVistA
if [[ -z $vista_source ]] ; then export vista_source=`dirname $0` ; fi
if [[ -z $gtm_source ]] ; then export gtm_source=$vista_source/../gtm ; fi

# Set up GT.M environment & point to global directory
. $gtm_source/gtmprofile
export gtmgbldir=$vista_source/g/mumps.gld

# Determine action
case $1 in
  --install) action="Install (and run)" ;;
  --run) action="Run" ;;
  --erase) action="Erase" ;;
  *) if ! `Xdialog --radiolist "Select action" 0 0 3 \
       "Install (and run)" "<directory> [entryref]" "" \
      "Run" "<directory> [entryref]" "" \
      "Erase" "<directory>" "" 2>/tmp/OpenVistA$$.tmp`
    then Xdialog --infobox "Installation Cancelled.  Exiting..." 0 0 6000; exit 
1
    else action=`cat /tmp/OpenVistA$$.tmp` ; rm -f /tmp/OpenVistA$$.tmp
    fi
    ;;
esac

# Determine directory if none specified
if [[ -z $2 ]]
then if ! `Xdialog --title "Select directory" --dselect $PWD 0 0 
2>/tmp/OpenVistA$$.tmp`
  then Xdialog --infobox "Installation Cancelled.  Exiting..." 0 0 6000 ; exit 1
  fi
  export vista_home=`sed 's/\/$//' /tmp/OpenVistA$$.tmp` ; rm 
/tmp/OpenVistA$$.tmp
else export vista_home=$2
fi

# For Run and Erase directory must exist; for Install OK to create if non 
existent
case $action in
  ("Run"|"Erase") if ! [[ -f $vista_home/g/mumps.dat ]]
      then Xdialog --infobox "$vista_home/g/mumps.dat does not exist.  
Exiting..." 0 0 6000 ; exit 1
      fi ;;
  *)  if ! [[ -d $vista_home && -d $vista_home/o && -d $vista_home/r ]]
      then if ! `Xdialog --yesno "$vista_home and/or subdirectories don't 
exist.  OK to create?" 0 0`
        then Xdialog --infobox "Installation Cancelled.  Exiting..." 0 0 6000 ; 
exit 1
        fi
        if ! `mkdirhier $vista_home/g $vista_home/o $vista_home/r`
        then Xdialog --infobox "Unable to create $vista_home and/or 
subdirectories.  Exiting..." 0 0 6000 ; exit 1
        fi
      fi ;;
esac

case $action in
  "Run") export gtmroutines="$vista_home/o($vista_home/r) 
$vista_source/o($vista_source/r) $gtm_dist"
    cd $vista_home
    if [[ -z $3 ]] ; then $gtm_dist/mumps -dir ; else $gtm_dist/mumps -run $3 ; 
fi
  ;;
  "Erase") if ! `rm -rf $vista_home`
    then Xdialog --infobox "Unable to delete $vista_home.  Exiting..." 0 0 6000 
; exit 1
    fi
  ;;
  "Install (and run)") Xdialog --infobox "Copying the database.  May take 
several minutes." 0 0 12000&
    gzip -d <$vista_source/g/mumps.dat.gz >$vista_home/g/mumps.dat
    export gtmroutines="$vista_home/o($vista_home/r) 
$vista_source/o($vista_source/r) $gtm_dist"
    if [[ -z $3 ]] ; then $gtm_dist/mumps -dir ; else $gtm_dist/mumps -run $3 ; 
fi
;;
esac

Reply via email to