🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #3012

Re: setting global environment vars in REXX

#3012
From: Peter Forsberg
Date: Wed, 18 Nov 1992 07:53
37 lines
2356 bytes
In <exujlg.173.0@exu.ericsson.se> Jon L. Gauthier, EXU/IS/TP, Rm B-65, MS B-07, 997-0157 writes:
>I'm new to programming in OS/2, so please bear with me.
>
>I'm trying to create a Lan Manager login script for OS/2 workstations on our
>network that sets some global environment variables.  I can create local
>vars with the VALUE function, but I need to add drives to the PATH, DPATH,
>and LIBPATH variables (is it possible to add to LIBPATH, since it's not an
>environment variable?).
>
>Any pointers would be appreciated.
>
>Regards,
>------------------------------------------------------------------------------
>Jon L. Gauthier                                 Ericsson Network Systems, Inc
>EXU/IS/TP Systems Programmer                                  P.O. Box 833875
>+1 214 997-0157                                     Richardson, TX 75083-3875
>
>e-mail:  exujlg@exu.ericsson.se, exu.exujlg@memo.ericsson.se
>Geez!  Can I be a .com, huh? huh?  Aw, pleeeaaasssse?
>------------------------------------------------------------------------------
>

I'm no REXX-guru, but I do know one thing (which isn't REXX-related anyway),
and that is that LIBPATH is impossible to change with less than a change to
CONFIG.SYS followed by an IPL. The best you could do is probably to put some
"generic" entries in LIBPATH (e.g. ../DLL;/DLL;./DLL; ...), and make sure
these are valid on all drives. Agreed, this is not at all as flexible as it
would be to be able to update LIBPATH dynamically.
As for changing PATH and DPATH, couldn't you try
  'PATH x:/mydir/bin;%PATH%'
(doesn't ' ' address the command processor, CMD.EXE?)

Peter
--
Peter Forsberg           E-mail:  peterf@vnet.ibm.com          (primary)
                                  d88-pfo@nada.kth.se        (alternate)
Disclaimer: This posting represents the poster's views, not those of IBM
Technical Details
Message-ID: <19921117.230525.290@almaden.ibm.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!vnet.ibm.com
References: <exujlg.173.0@exu.ericsson.se>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!vnet.ibm.com
From: peterf@vnet.ibm.com (Peter Forsberg)
Message-ID: <19921117.230525.290@almaden.ibm.com>
Date: Wed, 18 Nov 92 07:53:52 SWE
Newsgroups: comp.os.os2.programmer
Subject: Re: setting global environment vars in REXX
Reply-To: peterf@vnet.ibm.com
Organization: IBM Corporation
Disclaimer: This posting represents the poster's views, not those of IBM
News-Software: UReply 3.0
References: <exujlg.173.0@exu.ericsson.se>
Lines: 37