l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2001 Dec 30 17:05

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Environment variable.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Environment variable.


What brand of operating system are you running on (HP-UX, Solaris, Linux,
AIX..., I'm assuming you are on a Unix machine).

In short when you login to a unix machine (like from the console or telnet),
a script(s) gets run automatically..  I think (I'm sure someone will correct
me), which script(s) that gets run depends on the shell you are using, but
these scripts exist in your home directory (i.e. the directory into which
you are placed when you login)

Shell        profile script
-----        --------------
bash         .bashrc
ksh          .profile
POSIX    .profile (at least on HP)
csh          .cshrc
tcsh         I don't know

Then you just stick your commands in the appropriate file, you can find out
the shell you are running by entering:

echo $0


----- Original Message -----
From: "Erik Mullinix" <Hesp@rainworks.org>
To: <vox-tech@franz.mother.com>
Sent: Wednesday, May 30, 2001 10:06 AM
Subject: Re: [vox-tech] Environment variable.

> Hmm
> the syntax doesnt seem to get the information right for me.
> Perhaps im doing something wrong.
> the spacific request is
> "Don't forget to set the SYBASE environment variable to /opt/sybase in
> profile"
> what does this refer to?
> I do appreciate the help and the quick responses.
> Hesperant
> ----- Original Message -----
> From: "ME" <dugan@passwall.com>
> To: <vox-tech@franz.mother.com>
> Sent: Wednesday, May 30, 2001 1:24 PM
> Subject: Re: [vox-tech] Environment variable.
> > On Wed, 30 May 2001, Erik Mullinix wrote:
> > > How do you set or modify an environment variable?
> >
> > Depends upon evironment for which the variable would belong. ;-)
> >
> > Assuming a shell and one of the 2 common types...
> >
> > bash/sh:
> > $ variable="name"
> > or for export:
> > $ export variable="name"
> >
> > tcsh/csh:
> > > set var value
> > > setenv var value
> >
> > examples:
> >  (bash):
> > $ export TERM="vt100"
> >  (csh):
> > > setenv TERM vt100
> >
> > Is this sufficient for your needs?
> >
> >

Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.