![]() |
![]() |
#1 |
Registered User
Join Date: Apr 2013
Location: Norway
Posts: 260
|
Get ENV-variables from Arexx?
Does ARexx have any builtin functions for accessing ENV-variables? I can't find anything in the docs about it.
Is the best way to open the file in the script, and then use ReadLN to get the value? |
![]() |
![]() |
#2 |
Global Moderator
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 32,591
|
Korodny uses the readln() method here: https://eab.abime.net/showpost.php?p...9&postcount=13
No idea if there's an easier way. |
![]() |
![]() |
#3 |
Registered User
Join Date: Apr 2013
Location: Norway
Posts: 260
|
Yep I know, and it works just fine.
Bit surprised there wasn't any easier way as they are easily available in AmigaDOS scripting ![]() |
![]() |
![]() |
#4 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,391
|
Maybe address command getenv ?
|
![]() |
![]() |
#5 |
Registered User
Join Date: Apr 2013
Location: Norway
Posts: 260
|
|
![]() |
![]() |
#6 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,391
|
Then why not something like :
Code:
address command 'rx "push `getenv envvar`"' pull rxvar |
![]() |
![]() |
#7 |
Registered User
Join Date: Apr 2013
Location: Norway
Posts: 260
|
Yay! That worked perfectly!
Thanks a lot! |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ENV-handler in kickstart | Joel_w | support.Apps | 0 | 02 August 2019 15:02 |
Variables? | Retro1234 | Coders. Blitz Basic | 12 | 15 March 2017 12:41 |
Insert ENV Message - OS3.9 | LuMan | support.Apps | 6 | 28 April 2013 00:24 |
cannot save files to env: | amifreak | support.Hardware | 2 | 20 December 2004 02:01 |
|
|