Hi Kevin, For this response, I will assume that you are running the bash shell (though others may work this same way), and that you have a script named ~/bin/gtmsetup that reads something like the following:
#!/bin/bash export gtmgbldir="something" export gtmroutines="something" # etc. >From the command line, you would have at least two options to get those >variables defined in your shell. One would be to use the source command: $ source ~/bin/gtmsetup or you could simply "include" the script by typing a dot, a space, and then the name of the script: $ . ~/bin/gtmsetup Hope that helps. Alan Good judgment is gained through experience, and experience is gained through poor judgment. >>> [EMAIL PROTECTED] 05/15/06 8:32 AM >>> I am working on the GTM upgrade process. In the past, I set up a script to define my GTM variables like $gtmgbldir etc. I was advised by someone not to simply include these in my .bashrc script, so I created a script call runvista and setupvistaenv. When I call runvista, it calls setupvistaenv and then executes mumps. But now that I am trying to work with dbcertify and dse, I don't have these variables available unless I make a new script for this. I seems that when a variable is exported from inside a script, then its scope is only within that script. So if, from the command-line prompt, I call setupvistaenv, then the variables go out of scope as soon as the script ends, and it doesn't help me at all. So my question is, is there a way to make exportated variables "globals"? Also, how is everyone else doing this? Just put it in the .bashrc file? Thanks Kevin ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members