ARexx Path
5 messages in this thread
Bill,
sorry, but another question.
I've found that it seems to be a problem to set the path environment
correctly.
For instance: In Startup-Sequence I set up several paths with the standard CLI
PATH command. I call User-Startup with EXECUTE. Herein I check for existing
pathnames, make assigns and ADD the path accordingly.
Calling those PATH command from the WShell gives me all pathnames and all
assigns which were made in the Startup-Sequence and the User-Startup.
Now having DirectoryOpus, or other Hosts, running, I call an ARexx macro.
Herein I call the ARexx command:
ADDRESS COMMAND whatever
whatever is not going to be found. The command is found calling it from the
Shell, but not out of the macro being called by the Host.
Now I have written a little macro telling me the path DirectoryOpus knows:
ADDRESS COMMAND 'path >t:temp' OPEN(t,'t:temp') line = readln(t) do while line
~= ''
request line
readln(t) end
And as I can see, the path shown is the path which is definied in the
Startup-Sequence. All additional paths from my User-Startup are not displayed.
NOW MY QUESTION: what am I doing wrong? What can I do to let DirectoryOpus or
any other program know the whole path?
Thanx
-Mike
CompuStore GmbH – Michael Metz – Fritz-Reuter-Str.6 – D-60320 Frankfurt Tel:
+49 69 567399 – CI$ 71001,210 – Fax: +49 69 5601784
Mike,
What is probably happening is that Workbench and/or DirectoryOpus are capturing
the path in efefct when they are started, which may be before the paths you
define un user-startup take effect. Try to get all of your path commands
executed before you start Workbench or DirectoryOpus.
On the Amiga there is no defined "global" path, only those held by a particular
shell or other application.
-Bill Hawes
Bill,
this is what I am doing. I define all paths before I start LoadWB.
DirectoryOpus is started out of WShell so I think if WShell known the paths,
why doesn't DOpus know them?
Any further ideas?
-Mike
CompuStore GmbH – Michael Metz – Fritz-Reuter-Str.6 – D-60320 Frankfurt Tel:
+49 69 567399 – CI$ 71001,210 – Fax: +49 69 5601784
Mike,
I would think that if DirectoryOpus is started from a shell, it should inherit
the path from that shell. It's possible though that they decided to copy the
Workbench path instead of the one inherited from the shell. It should be easy
to test in any event — just put a special directory into the shell's path, and
see whether DirectoryOpus picks it up.
Arexx commands launched from a shell will inherit the shell's path, and if
launched from another application will inherit that path. In the case where
the ARexx program's client doesn't have a path, ARexx will use the ARexx
server's (rexxmaster) path.
-Bill Hawes
Ok Bill,
it depends on the Host, which path will be inherited for the macro.
I'll check with the DOpus guys, what they are doing.
Thanx
-Mike
CompuStore GmbH – Michael Metz – Fritz-Reuter-Str.6 – D-60320 Frankfurt Tel:
+49 69 567399 – CI$ 71001,210 – Fax: +49 69 5601784