TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Michael Hall
from: Billy O`connor
date: 1994-10-14 00:52:00
subject: Os/2 Environment

>  Is there a way to set an environment variable in the "master" OS/2
 >environment so all OS/2 windows see it.
 >  Right now I'm setting a dummy variable in my config.sys for the
 >"hostname" variable for TCP/IP. I call in with SLIP, so I
have a dynamic
 >address. I've edited my slipup.cmd to parse and get the value, I have
 >tried setting it with the REXX stuff, specifying
"OS2ENVIRONMENT", etc.
 >but none of the other OS/2 sessions see it, they still read the dummy
 >value from my config.sys. I thought that REXX would do it, but I must
 >be doing something wrong or else there's a better way to do it ??

Hi, Mike.  
Fast hack:
SLIPUP.CMD parses the address and writes it out to a text file.
Any other sessions that have to read it are loaded by a .CMD file that reads
the text file and sets the environment variable.

Of course this is only considered a fast hack under OS/2.  Under Unix,
it's a named pipe.
___
 * MR/2 2.05 NR * billyoc{at}netcom.com

--- QScan v1.13b / 01-0164

* Origin: PandA's Den BBS * Danvers, MA * 508-750-0250 * Node 1 (1:330/204)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413
SEEN-BY: 711/430 807 808 809 934 942 949 712/353 623 713/888 800/1
@PATH: 330/204 176 3615/50 229/2 12/2442 711/409 54/54 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.