Re: [vox-tech] Environment variable.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [vox-tech] Environment variable.
Erik,
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
Jay
----- 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
your
> 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
|