Ask a Question related to UNIX Programming, Design and Development.
-
ujjwal bhoota #1
who interpretes the environment variables
My question is does Operating system interpretes any environment
variable for any purpose?? Or does it just see them as name-value
pairs??
One fact that I know is that OS is always aware that environment
variables exists for example there are system calls to get, set,
unset, clear the environment variables.
But are they used by OS in any way??
For example "PATH" variable is (probably) interpreted by shell and not
by OS.
Thanks and Regards,
Ujjwal
ujjwal bhoota Guest
-
Setting Environment Variables
Greetings, My ColdFusion application has to act slightly differently depending on whether it is on the live server or the develop server. The... -
J2EE environment variables
Hi all, I need to know how to set the J2EE environment variables. I can see that the JAVA_HOME environment variable is set, but i also need the... -
HTA environment variables?
I have an HTA (HTML Application) that builds another HTA and (after writing it to disk via FSO) invokes MSHTA.EXE to run it. Is it possible to... -
Environment Variables - How to
I'm wondering if there are such a command line/console version of setting the environment variables. Instead of using the GUI version, I'm used... -
setting environment variables in IIS
Hi, How can I set up environment variables to be used in the script in IIS ? Thanks, Pradeep -
Shaun Clowes #2
Re: who interpretes the environment variables
"ujjwal bhoota" <ujjwalbhoota@yahoo.com> wrote in message
news:98e0d8b3.0307091345.783a6cc3@posting.google.c om...It just sees them as strings and does not use them for any purpose, ever> My question is does Operating system interpretes any environment
> variable for any purpose?? Or does it just see them as name-value
> pairs??
(that I'm aware of).
These are not system calls, they're library calls (libc).> One fact that I know is that OS is always aware that environment
> variables exists for example there are system calls to get, set,
> unset, clear the environment variables.
Nope.> But are they used by OS in any way??
Exactly.> For example "PATH" variable is (probably) interpreted by shell and not
> by OS.
Cheers,
Shaun
Shaun Clowes Guest
-
Andrew Gabriel #3
Re: who interpretes the environment variables
In article <NA0Pa.267$Vw1.13656@news.optus.net.au>,
"Shaun Clowes" <delius@no.spam.for.me.progsoc.org> writes:There was a unix varient which allowed environment variables in>
> "ujjwal bhoota" <ujjwalbhoota@yahoo.com> wrote in message
> news:98e0d8b3.0307091345.783a6cc3@posting.google.c om...>>> My question is does Operating system interpretes any environment
>> variable for any purpose?? Or does it just see them as name-value
>> pairs??
> It just sees them as strings and does not use them for any purpose, ever
> (that I'm aware of).
>>>> One fact that I know is that OS is always aware that environment
>> variables exists for example there are system calls to get, set,
>> unset, clear the environment variables.
> These are not system calls, they're library calls (libc).
>>>> But are they used by OS in any way??
> Nope.
>>>> For example "PATH" variable is (probably) interpreted by shell and not
>> by OS.
> Exactly.
symlinks (might have been Apollo, but not 100% sure). This required
the kernel to obtain the environment variable expansion from the
process accessing the link. I don't know the details of how it was
implemented.
--
Andrew Gabriel
Consultant Software Engineer
Andrew Gabriel Guest
-
ujjwal bhoota #4
Re: who interpretes the environment variables
"Shaun Clowes" <delius@no.spam.for.me.progsoc.org> wrote in message news:<NA0Pa.267$Vw1.13656@news.optus.net.au>...
So the next question is "is OS at all aware of existence of> "ujjwal bhoota" <ujjwalbhoota@yahoo.com> wrote in message
> news:98e0d8b3.0307091345.783a6cc3@posting.google.c om...>> > My question is does Operating system interpretes any environment
> > variable for any purpose?? Or does it just see them as name-value
> > pairs??
> It just sees them as strings and does not use them for any purpose, ever
> (that I'm aware of).
>>> > One fact that I know is that OS is always aware that environment
> > variables exists for example there are system calls to get, set,
> > unset, clear the environment variables.
> These are not system calls, they're library calls (libc).
>>> > But are they used by OS in any way??
> Nope.
env-variable or it just treate them as part of address space of
process"
For example consider following cases
1. On fork os duplicates the address space of parent process, so all
env-var also gets duplicated as side effect, without OS explicitly
knowing about env-vars. So os is not aware of env-vars in this case.
2. On exec the env-vars might be provided just like command line args,
so it seems here that OS must put them near stack. BUT it do not have
to be like that, for example after exec we can set env variable in
user context by using functions like setenv(). So os is not aware of
env-vars in this case also.
Please correct me if I am wrong.
-Ujjwal Bhoota
>>> > For example "PATH" variable is (probably) interpreted by shell and not
> > by OS.
> Exactly.
>
> Cheers,
> Shaunujjwal bhoota Guest



Reply With Quote

