Re: [Hardhats-members] Linux question: export scope

2006-05-16 Thread Alan O'Neill
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

Re: [ibk: Re: [Hardhats-members] Linux question: export scope]

2006-05-16 Thread Kevin Toppenberg
is not working so I just wanted to send you a copy. Thanks. Ismet - Forwarded message from ibk - To: hardhats-members@lists.sourceforge.net Subject: Re: [Hardhats-members] Linux question: export scope Mail-Followup-To: hardhats-members@lists.sourceforge.net Kevin, ~/.bashrc

[Hardhats-members] Linux question: export scope

2006-05-16 Thread Kevin Toppenberg
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

Re: [Hardhats-members] Linux question: export scope

2006-05-16 Thread Kevin Toppenberg
Alan, Thanks. Ismet told me the same thing and it works! Thanks so much for your reply. Kevin On 5/16/06, Alan O'Neill [EMAIL PROTECTED] wrote: 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

Re: [Hardhats-members] Linux question: export scope

2006-05-16 Thread Ismet Kursunoglu
Kevin, ~/.bashrc is executed by bash for non-login shells, while if you want to source global definitions, then you would want to include something like this if [ -f /etc/bashrc ]; then . /etc/bashrc fi While /etc/bashrc sets the system-wide .bashrc file for interactive bash