Changing Solaris environment variables so os:getenv/1 gets the ne w value

Peter H|gfeldt peter@REDACTED
Fri Mar 24 21:01:11 CET 2000


Try os:putenv(Var, Value).

/Peter

-------------------------------------------------------------------------
Peter Högfeldt 		e-mail  : peter@REDACTED
Open Telecom Platform

On Fri, 24 Mar 2000, Sean Hinde wrote:

> Hi all,
> 
> Something which has been perplexing me for a while.
> 
> When running an embedded system, I want to be able to change the DISPLAY
> environment variable so that a call to to_erl can start appmon displayed on
> a remote host.
> 
> If I simply do
> export DISPLAY=host:0.0 
> to_erl
> Attaching to /tmp/erlang.pipe.2 (^D to exit)
> 
> (node@REDACTED)2> os:getenv("DISPLAY").
> false
> 
> 
> I know I can set DISPLAY in the start script, but I don't want to have to
> restart the node to change the DISPLAY variable!
> 
> Has anyone come up with a solution to this in the past?
> 
> Thanks,
> 
> Sean
> 




More information about the erlang-questions mailing list