[openbeosnetteam] Re: PPP homepage

Quoting Waldemar Kornewald <Waldemar.Kornewald@xxxxxx>: 
 
> > 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? 
>  
> Nothing special. $HOME could be useful sometimes. Can I not somehow put the 
> information from /etc/profile into load_image() without running "sh"? But if 
> "sh" works then that is okay, too. 
 
 
According to sh and bash man page, passing -l option for login-like invocation 
should load the /etc/profile: 
 
/bin/sh -l -c /path/to/our/app 
 
It should do the trick. I dunno why I didn't try this at first. 
 
- Philippe 
 

Other related posts: