Marc, A script like you give below is essentially all it takes to access web applications that connect to a VistA database via CGI. Here is an example m2web-vista.cgi. Notice that the invocation of mumps is slightly different from what you give and that there is a test for the environment variable HTTP_HOST (always defined by CGI) to determine whether it should start up in direct (MUMPS programmer) mode or running the routine ^htCGI (the starting point for all M2Web CGI handling).
The variable gtm_sysid shows up in MUMPS in $SYSTEM. It can be pretty much whatever you want to identify your server. The variable GTMXC_md5 is used in m2web to identify calls to the md5 encryption library. #!/bin/bash #invoke GT.M for M2Web CGI export m2web="/usr/local/m2web" export vista_home="/usr/local/vista/OpenVistA" export gtm_sysid="vista.net" export gtm_dist="/usr/local/gtm" export gtmgbldir="$vista_home/g/mumps.gld" export gtmroutines="$vista_home/o($m2web/w $vista_home/r) $gtm_dist" # MD5 Library external-call table export GTMXC_md5 = "$m2web/w/xc/gtm_md5.xc" cd $m2web/w if [[ -z $HTTP_HOST ]] then $gtm_dist/mumps -direct else $gtm_dist/mumps -r htCGI fi #-- end of file m2web-vista.cgi -- Marc Aylesworth wrote: >I don't actually have a running server. I would write a script that goes >something like this. > > >gtm_dist=/<Where you installed gtm> >gtm_log=<where you want your log file> >gtmgbldir=<where mumps.gld is> >gtm_vista=<where vista is> >vista_home=<where vista is> >gtmroutines="$vista_home/o($vista_home/r) $gtm_dist" >PATH=$PATH:$gtm_dist > >export PATH gtm_dist gtm_log gtmgbldir gtm_vista vista_home gtmroutines > > >## this might be wrong but the veterans on this page will chime in if it is >## wrong > >Mumps -dir D^XUP > >## END > >Call this script startVista.sh the script when started will setup the >environment variables and then start Vista. > > > >Thanks > >Marc Aylesworth > >C3I Associates > >AFRL/IFSE > >Joint Battlespace Infosphere Team > >525 Brooks Rd > >Rome, NY 13441-4505 > >Tel:315.330.2422 > >Fax:315.330.7009 > >Email: [EMAIL PROTECTED] > > >-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On Behalf Of Zeno >Davatz >Sent: Thursday, July 28, 2005 9:20 AM >To: hardhats-members@lists.sourceforge.net >Subject: Re: [Hardhats-members] Worlvista Setup > >Hi! > >Ok, thanks for the hint, but where do I set the Variables? Can you >post your Variables file here and your path to the file? Or even >better: Is there a command to start Vista with some Variables? > >Can you point me to a HowTo-Link or some man pages? > >thanks for your Feedback >Zeno > >On 7/28/05, Aylesworth Marc A Ctr AFRL/IFSE <[EMAIL PROTECTED]> >wrote: >> You can also use a startup script to set the variables and start Vista but >> the variables need to be set somewhere before the program is run. >> >> Thanks >> >> Marc Aylesworth >> >> C3I Associates >> >> AFRL/IFSE >> >> Joint Battlespace Infosphere Team >> >> 525 Brooks Rd >> >> Rome, NY 13441-4505 >> >> Tel:315.330.2422 >> >> Fax:315.330.7009 >> >> Email: [EMAIL PROTECTED] >> >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of Zeno >> Davatz >> Sent: Thursday, July 28, 2005 9:03 AM >> To: hardhats-members@lists.sourceforge.net >> Subject: Re: [Hardhats-members] Worlvista Setup >> >> Hi! >> >> Thanks for your reply. I downloaded the lastest Version of Vista from >> Sourceforge: My Version says: >> /tmp/OpenVistASemiVivAFOIAGold20050507.tgz I guess that comes with the >> FileMan Version 0.22. >> >> Thanks for your Feedback, keen to get this running. >> >> I got another question: Do I need to configure my .bash_profile >> according to instructions of the "manual installation"? >> >> I'm not doing the manual installation. What I'm doing is >> "/home/vista/FOIAVistA/vista" for the setup and >> "/home/vista/FOIAVistA/vista --run" to run the program. >> >> I'm on Gentoo-Linux 2.6.12.3 with Xdialog installed. >> >> Thanks for your help >> Zeno >> >> On 7/28/05, Nancy Anthracite <[EMAIL PROTECTED]> wrote: >> > The program cannot find your routines, so you need to set up your >> environment >> > variables correctly. You need to tell what version of VistA you are >> loading >> > so we can help point you in the right direction. >> > >> > On Thursday 28 July 2005 04:01 am, Zeno Davatz wrote: >> > > Hi >> > > >> > > I'm new to worldvista.org and I'm just in the progress of setting it >> > > up. I have noted my questions so far right here: >> > > http://openforum.worldvista.org/~forum/index.php?title=User_talk:Zeno >> > > >> > > Would be glad if you could throw me any hint or Feedback, either in >> > > the list or right in the WIKI. >> > > >> > > I think worldvista is great stuff! >> > > >> > > thanks for your help. >> > > Zeno --------------------------------------- Jim Self Systems Architect, Lead Developer VMTH Computer Services, UC Davis (http://www.vmth.ucdavis.edu/us/jaself) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members