Ismet,

This is exactly what I wanted!

If I typed: sh setup_vista_environment, then the environmental
variables are not set when I return to the command shell.

But when I type source setup_vista_environment, then they ARE.

Thanks!

Kevin


On 5/15/06, Ismet Kursunoglu <[EMAIL PROTECTED]> wrote:
Hi Kevin,

If you just want to work from konsole or an xterm for example - i.e.
while running some X window server or over ssh you could just 'source'
which ever configuration file you like. That is pretty much consistent
across the various shells

i.e. when I am using various configurations of mutt for email (if I
want it to read a particular mutt configuration file) I would do
$source .muttrc_imap
or in your case you could have a custom bashrc file that you would
source using the built in command 'source'
$ source custom_bashrc

'source' is a bash built-in, just in case you didn't know.

Is that what you mean? Or do you want to execute an argument to your
command-line output? Then you could use 'xargs'

I hope I am not confusion the issue.

Ismet
On Mon, May 15, 2006 at 03:29:58PM -0400, Kevin Toppenberg wrote:
> Thanks Ismet,
>
> I was wondering if there was something I could run just once in
> awhile, becaues I don't often need these variables defined when I am
> at the command prompt.  But based on your reply, I'm guessing I would
> need to do it the way you specify.
>
> Thanks
> Kevin
>
>
> On 5/15/06, Ismet Kursunoglu <[EMAIL PROTECTED]> wrote:
> >Hi Kevin,
> >
> >I see that the list 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 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
> >shells.
> >
> >If you want to enable the settings (commands) in that file for login
> >shells as
> >well, that file has to be sourced in /etc/profile (where you can add
> >additional paths - but I would definitely leave out the '.' in the
> >path statement)
> >
> >This is how it works on Debian, I don't know about CentOS, but I will
> >check later this afternoon if you like.
> >
> >On Mon, May 15, 2006 at 08:32:32AM -0400, Kevin Toppenberg wrote:
> >
> >> 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?
> >>
> >--
> >Ismet B. Kursunoglu, MD, FCCP
> >
> > Medical Director
> > Alaska Clinic, LLC
> > 3750 E. Country Field Circle, STE B
> > Wasilla, Alaska 99654-6659
> > [EMAIL PROTECTED]
> > voice (907)357-7240
> >
> >----- End forwarded message -----
> >
> >--
> >Ismet B. Kursunoglu, MD, FCCP
> >
> > Medical Director
> > Alaska Clinic, LLC
> > 3750 E. Country Field Circle, STE B
> > Wasilla, Alaska 99654-6659
> > [EMAIL PROTECTED]
> > voice (907)357-7240
> >

--
Ismet B. Kursunoglu, MD, FCCP

 Medical Director
 Alaska Clinic, LLC
 3750 E. Country Field Circle, STE B
 Wasilla, Alaska 99654-6659
 [EMAIL PROTECTED]
 voice (907)357-7240



-------------------------------------------------------
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

Reply via email to