11 January 2019, 13:18 | #1 |
Registered User
Join Date: Dec 2018
Location: UK
Posts: 1,716
|
AREXX - minimal requirements/setup?
Hi,
I've been struggling with AmigaDOS scripts and want to explore better scripting options to use within the startup-sequence script. What is the minimal requirement/setup to get AREXX scripting to work? What commands and libraries do I need? Cheers! |
11 January 2019, 13:20 | #2 |
Registered User
Join Date: Dec 2018
Location: UK
Posts: 1,716
|
Sorry, ignore this - just found a response to this question in my other thread!:
Requirements: More or less RexxMast running. See also https://wiki.amigaos.net/wiki/AmigaO...etting_Started In Libs should be rexxsyslib.library and rexxsupport.library. On an OS3 install they already exists.That's all. Of course you can use more libraries but not needed. Last edited by solarmon; 11 January 2019 at 15:06. |
12 January 2019, 14:10 | #3 |
Registered User
Join Date: Dec 2018
Location: UK
Posts: 1,716
|
OK - so got ARexx installed and trying to use the datatypes.library from http://aminet.net/package/util/libs/dtypeslib453.
Even though I copied datatypes.libary to LIBS: and version is showing that it is version 45.3, the example examinedt.rexx script is throwing a: "10/14: Requested Library not found" And SnoopDos (I love this tool!) shows that the library fails to open - see attached image. One observation, which may or may not be related, is that SnoopDos does not show/display the 'Fail' result text until I select the line - strange? Can anybody explain why the library cannot be opened? Cheers! |
12 January 2019, 14:13 | #4 |
Registered User
Join Date: Dec 2018
Location: UK
Posts: 1,716
|
Looking at the example code, it looks like it is failing when trying to call the ExamineDT() function, even though the library was loaded OK with ADDLIB() prior to that.
|
12 January 2019, 15:04 | #5 |
Registered User
Join Date: Feb 2017
Location: Caladan
Posts: 33
|
Arexx was my all time unknown component... I never got to understand it :-o
|
12 January 2019, 16:35 | #6 | |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,262
|
Quote:
Multiview to read the document "examinedt.rexx script" needs "text.datatype" installed in the system If you need to run an arexx script instead, you must use the RX command instead not Multiview Last edited by AMIGASYSTEM; 13 January 2019 at 19:07. |
|
12 January 2019, 16:40 | #7 |
Registered User
Join Date: Sep 2014
Location: Poland
Posts: 175
|
Why you using 3rd party datatypes.library instead of original from OS3?
I'v tested this library and everything went OK. ADDLIB() function is case-sensitive, library name must be all lower case. Also, try "rxlib" to see if datatypes.library is properly loaded. If not, try to load it manually: rxlib datatypes.library 0 -30 0 Last edited by Ami; 12 January 2019 at 17:13. |
12 January 2019, 17:02 | #8 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,262
|
In fact datatypes.library 453 has problems in showing txt files, for other files example as images it is very fast and works well.
|
12 January 2019, 17:15 | #9 | |
Registered User
Join Date: Dec 2018
Location: UK
Posts: 1,716
|
Quote:
What you are referring to is the default application for that file, set in the examinedt.rexx.info file. |
|
12 January 2019, 17:28 | #10 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,262
|
RX it should not require "datatype.library" but "Rexxsyslib.library"
Last edited by AMIGASYSTEM; 13 January 2019 at 19:07. |
12 January 2019, 17:30 | #11 |
Registered User
Join Date: Dec 2018
Location: UK
Posts: 1,716
|
Quote:
I used the example script provided by the dtypeslib453 package on aminet However, the issue I'm having is during a minimal startup script. There must be some other dependencies/requirements I'm not aware of - that is why I used SnoopDos to try to figure that out. Thanks for the tip about testing with rxlib. I've tried that and it does show the datatypes.library as being loaded. I think the issue is when the ExamineDT() function is reached in the example script. Cheers! Last edited by solarmon; 12 January 2019 at 17:38. |
12 January 2019, 17:37 | #12 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,262
|
Repeat it is very strange that you are asked datatypes.library, here are the libraries that require RX
Last edited by AMIGASYSTEM; 13 January 2019 at 19:07. |
12 January 2019, 17:42 | #13 | |
Registered User
Join Date: Dec 2018
Location: UK
Posts: 1,716
|
Quote:
The issue I'm having is NOT getting rx working. Also, I'm not saying that datatypes.library is required for rx to work. I'm just trying to get the example examinedt.rexx script running to test using the datatypes.library. Maybe I should have created a separate thread for this issue. Apologies for the confusion. |
|
12 January 2019, 17:52 | #14 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,262
|
Ok, unfortunately, the translation does not help much
|
12 January 2019, 18:04 | #15 |
Registered User
Join Date: Sep 2014
Location: Poland
Posts: 175
|
Maybe this is bug in 3.1 (also tested with 3.5, same behavior)? In 3.1.4 everything is OK.
Do you got this error even if you boot into full Workbench? Last edited by Ami; 12 January 2019 at 18:19. |
12 January 2019, 18:40 | #16 | |
Registered User
Join Date: Dec 2018
Location: UK
Posts: 1,716
|
Quote:
If this helps, the 'version' output of the setup I'm testing on is: Code:
Kickstart 40.63, Workbench 40.42 But I'd still like to know why I have this issue and how to resolve it. It will be good for my learning and understanding. Cheers! |
|
12 January 2019, 18:50 | #17 |
Registered User
Join Date: Sep 2014
Location: Poland
Posts: 175
|
OK got it! You must include this:
Code:
C:AddDatatypes REFRESH QUIET ; ENV: assign required! |
12 January 2019, 19:16 | #18 | |
Registered User
Join Date: Dec 2018
Location: UK
Posts: 1,716
|
Quote:
However, I still have the same issue when running the examinedt.rexx script. What does AddDatatypes actually do? |
|
12 January 2019, 20:21 | #19 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,307
|
In datatypes.library.doc you can read this:
Code:
RESULTS If STORAGE was set to "VAR", the result is the datatype name. On error, the numeric DOS error code is returned. [...] NOTE - Error handling has been changed in V45. On error, the function now returns the error number (1 - 2099), which can be converted using rexx/GETDTSTRING; only serious errors (like "non memory") will end in a rexx error code. |
12 January 2019, 21:22 | #20 | ||
Registered User
Join Date: Sep 2014
Location: Poland
Posts: 175
|
Quote:
Quote:
|
||
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Minimal startup-sequence for Tinylauncher? | emuola | Amiga scene | 13 | 03 January 2018 14:21 |
C - minimal setup code for drawing graphics | attle | Coders. C/C++ | 3 | 06 February 2017 22:07 |
Minimal config for multiview | jotd | support.Apps | 17 | 14 March 2016 22:38 |
68000 minimal list of opcodes to know | kamelito | Coders. Asm / Hardware | 8 | 28 January 2014 21:43 |
A minimal request | jobro | Amiga scene | 3 | 29 December 2005 03:24 |
|
|