Amiga-Development

Please login or register.

Login with username, password and session length
Advanced search  

News:

Created for developers of all Amiga camps

Author Topic: OS4 Rexx layout?  (Read 2425 times)

0 Members and 1 Guest are viewing this topic.

adminZRt75

  • Administrator
  • Hero Member
  • *****
  • Posts: 589
    • View Profile
OS4 Rexx layout?
« on: December 24, 2012, 02:06:52 PM »

Started by Snuffy on utilitybase

Snuffy
Member

   Posted: 2004-Dec-29 14:28:18

Hi all:
In OS3.9, the dir. 'rexxc' housed all the rx commands; they're in C: now. S-S assigns REXX: Sys:s/arexx. This is all OK, but I still get 5/1 rexx errors, even in correct dir with 's' flag set.
Where's Gutyahr when you need him?
;-)
Snuffy




nicomen
Humble Servant

   Posted: 2004-Dec-30 02:30:46

Do you have an example/test case? How do you run the script?



Snuffy
Member

   Posted: 2004-Dec-30 04:25:52

Hi Nicomen:

It doesn't matter what, it's a path problem. From WB execute: rx opendrawer.rexx - works fine. If any other scripts are placed in the same directory - Sys:S/Arexx, are not found. All CED rexx scripts went here too, but aren't found. What's with the path problems in OS4? It appears to me that ASSIGN function has a linking problem.
Snuffy



Snuffy
Member

   Posted: 2004-Dec-30 05:08:49

Hi all:
Here is a test script to try. Put it in sys:s/arexx and try to execute by WB execute as: rx test.rexx

file name= Test.rexx
script=
---
/* hello world script */
say "Hello world!"
---
This normally returns 5/1 no program found error. I can't determine the path problem? This rexx system doesn't is not conforming to OS3.9 layouts BTW.

Snuffy



nicomen
Humble Servant

   Posted: 2004-Dec-30 05:46:36 ยท Edited by: nicomen

I'm sorry, but I simply don't understand what the error is ;/

The changed paths are to make things a bit more consistent and sensical. But I'm not sure if what you are experiencing is directly connected to slightly different path layout where system scripts or system commands are stored.

Edit:

Ah ok, I think I get it now, you want the RX command to look for scripts given as an argument in a certain path?

Why don't you just do "RX S:ARexx/Test.arexx" ?



Snuffy
Member

   Posted: 2004-Dec-31 08:13:28

Hi Nicomen:

->"...Why don't you just do "RX S:ARexx/Test.arexx" ?"

Wow, was that sweet! Thanks! I don't know why I couldn't think of the full path, but that's IT! I hope this get mentioned in needed documentation to OS4 someday-'when it's done!' :)

A very Happy New Year to you, sir, and the UtilityBase!
Snuffy



PJS
just passing through

   Posted: 2007-Jan-9 14:10:28

Hi Snuffy

Just thought I'd toss in a bit more that might help you: the "S:ARexx/" path
is also given the old "REXX:" assignment in OS4, by default.

So you can think of and use that new directory just like you might have used
the old "SYS:REXX/" or "REXX:" directory - and access it's contents by the
same (OS3.9) assignment - "REXX:Test.arexx", etc.

Good luck and HNY to you too,

PJS



Thomas
Member

   Posted: 2007-Jan-9 16:29:41

I don't see the problem either. I never got an error from rx. Rx looks in Rexx: by itself, no path needed. And I am quite sure that S:Arexx is contained in the default path as is S:Shell. You should check your startup scripts (startup-sequence and user-startup).

Anyway, what hinders you to add a simple path s:arexx add into s:user-startup ?

Bye,
Thomas
Logged