I think I figured it out. $3 is the 3rd input paramter. So I can use: vista --run $HOME/OpenVista_UserData ^MyFunction
Thanks Kevin --- Kevin Toppenberg <[EMAIL PROTECTED]> wrote: > Thanks Bhaskar, > > Is there any way to do this with your vista script? > I.e. do you have a way to pass this parameter? > > I have tried looking at the script itself, but I > haven't learned the script syntax well enough yet to > tell. The best I can see, you command: > $gtm_dist/mumps -run $3 > But I can't figure out how $3 gets set. > > Thanks > Kevin > > > --- "K.S. Bhaskar" <[EMAIL PROTECTED]> wrote: > > > mumps -run ^XYZ should take you from the shell > > directly into ^XYZ. So, > > if XYZ.m is a single line that says "x ^%ZVEMS q" > > you should be in > > business. > > > > -- Bhaskar > > > > On Fri, 2004-12-17 at 19:05, Kevin Toppenberg > wrote: > > > I have installed the VPE system on my > > installation. > > > > > > I would like to automatically enter the VPE > shell > > upon > > > starting GTM. > > > > > > I am starting GTM in a round-about way: I have > my > > own > > > mini script, that calls Bhaskar's script, that > > then > > > launches GTM. > > > > > > Is there any way in the setup to automatically > > evoke > > > the following code as soon as GTM is entered: > > > x ^%ZVEMS ? > > > > > > Thanks > > > Kevin > > > > > > p.s. below is my launching shell. Bhaskar's > vista > > > script is the same that everyone else should > have. > > > The key line is: > > > sh /usr/local/OpenVistA/vista --run > > > $HOME/OpenVistA_UserData > > > > > > --------------- > > > #start KT addition > > > #12-14-2004 --moved exports into runvista script > > > #----------------------------- > > > export gtm_dist=/usr/local/gtm > > > export gtm_log=/usr/local/gtm/log > > > export gtm_vista=$HOME/OpenVistA_UserData > > > #export gtmgbldir=$gtm_vista/g/mumps.gld > > > export gtm_vista_prod=/usr/local/OpenVistA > > > export gtmgbldir=$gtm_vista_prod/g/mumps.gld > > > export gtmroutines=".$gtm_dist" > > > export > gtmroutines="$gtm_vista/o($gtm_vista_prod/r > > > $gtm_vista/r $gtm_dist) $gtm_dist()" > > > > > > PATH=$PATH:$gtm_dist > > > > > > alias GTM="$gtm_dist/mumps -direct" > > > alias gtm="$gtm_dist/mumps -direct" > > > alias mupip="$gtm_dist/mupip" > > > alias gde="$gtm_dist/mumps -r ^GDE" > > > alias lke="$gtm_dist/lke" > > > alias dse="$gtm_dist/dse" > > > export vista_home=$gtm_vista > > > #----------------------------- > > > > > > echo " " > > > echo " " > > > echo " " > > > echo "Starting GT.M VistA" > > > echo "-------------------" > > > echo "FYI, here are relevant defined variables:" > > > echo > > > echo "gtm_dist="$gtm_dist > > > echo "gtm_log="$gtm_log > > > echo "gtmgbldir="$gtmgbldir > > > echo "gtm_vista="$gtm_vista > > > echo "gtmroutines="$gtmroutines > > > echo "vista_home="vista_home > > > echo " " > > > echo "Entering GT.M system now... " > > > #----------------------------- > > > export EDITOR="vim" > > > sh /usr/local/OpenVistA/vista --run > > > $HOME/OpenVistA_UserData > > > echo " " > > > echo "Leaving GT.M, returning to Linux..." > > > echo " " > > > > > > > > > > > > > > > > > > > > > __________________________________ > > > Do you Yahoo!? > > > Read only the mail you want - Yahoo! Mail > > SpamGuard. > > > http://promotions.yahoo.com/new_mail > > > > > > > > > > > > ------------------------------------------------------- > > > SF email is sponsored by - The IT Product Guide > > > Read honest & candid reviews on hundreds of IT > > Products from real users. > > > Discover which products truly live up to the > hype. > > Start reading now. > > > http://productguide.itmanagersjournal.com/ > > > _______________________________________________ > > > Hardhats-members mailing list > > > [EMAIL PROTECTED] > > > > > > https://lists.sourceforge.net/lists/listinfo/hardhats-members > > > > > *************************************************************************** > > This electronic mail transmission contains > > confidential and/or privileged information > intended > > only for the person(s) named. > > Any use, distribution, copying or disclosure by > > another person is strictly prohibited. > > > *************************************************************************** > > > > NOTE: Ce courriel est destine exclusivement au(x) > > destinataire(s) mentionne(s) ci-dessus et peut > > contenir de l'information privilegiee, > > confidentielle et/ou dispensee de divulgation aux > > termes des lois applicables. Si vous avez recu ce > > message par erreur, ou s'il ne vous est pas > destine, > > veuillez le mentionner immediatement a > l'expediteur > > et effacer ce courriel. > > > > > > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT > > Products from real users. > > Discover which products truly live up to the hype. > > Start reading now. > > http://productguide.itmanagersjournal.com/ > > _______________________________________________ > > Hardhats-members mailing list > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/hardhats-members > > > > > > > __________________________________ > Do you Yahoo!? > The all-new My Yahoo! - Get yours free! > http://my.yahoo.com > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT > Products from real users. > Discover which products truly live up to the hype. > Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Hardhats-members mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/hardhats-members > __________________________________ Do you Yahoo!? All your favorites on one personal page – Try My Yahoo! http://my.yahoo.com ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Hardhats-members mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members