[openbeosnetteam] Re: PPP homepage

"Waldemar Kornewald" <Waldemar.Kornewald@xxxxxx> wrote:
> Yes, but where do we get the value for the environtment variable 
> from? :)
> Normally, the shell should load /etc/profile and the boot-scripts. If 
> we 
> run an app from the kernel it does not have any environment variables 
> set. If I understood it correctly, on boot-up the kernel runs the 
> shell which 
> loads /etc/profile and the main boot-script. Only this shell can give 
> its 
> environment variables to the other processes that it runs (when 
> interpreting the boot-script).
> Consequently, we must run a shell that loads /etc/profile (if that is 
> enough) 
> and _then_ executes our app. Otherwise it will not have the default 
> environment variables set.
> 
> Is that understandable and correct?

You should definitely use "sh" if you want /etc/profile to be executed, 
yes. But I don't know where all the other variables are taken from, and 
there is no documented way to get the variables of another team.
What variables do you need anyway?

Bye,
   Axel.


Other related posts: