22 August 2022, 15:57 | #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? |
22 August 2022, 16:04 | #2 |
Global Moderator
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 32,557
|
Korodny uses the readln() method here: https://eab.abime.net/showpost.php?p...9&postcount=13
No idea if there's an easier way. |
22 August 2022, 16:09 | #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 |
22 August 2022, 18:19 | #4 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,391
|
Maybe address command getenv ?
|
22 August 2022, 19:50 | #5 |
Registered User
Join Date: Apr 2013
Location: Norway
Posts: 260
|
|
22 August 2022, 20:44 | #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 |
22 August 2022, 21:00 | #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 | |
Similar Threads | ||||
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 |
|
|