🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #10367

Re: ARexx path question

#10367
From: Daniel S. Riley
Date: Fri, 25 Nov 1988 17:12
26 lines
1747 bytes
In article <3015@sugar.uu.net> ssd@sugar.uu.net (Scott Denham) writes
about problems invoking AmigaDOS commands from an ARexx script.  He
writes:

>Rather than, say
>'delete ram:temp' with ram:c at the head of the path string, I used
>'ram:c/delete ram:temp', etc.  I still get the blasted requestor to re-
>insert the workbench disk I booted from.  It seems to all come down to 
>the C: pseudo-device; if I assign C: to RAM:C, evething works as I 
>would have expected.  If I assign C: to RAM:, the script runs but does
>not invoke any of the commands in it, even though they all contain
>explicit paths (I.E. SYS1:bin/cc ...) 

This is a good candidate for the "answers to the most commonly asked
Amiga questions" collection.  For compatibility reasons, most programs
which expect to spawn off arbitrary AmigaDOS commands use the AmigaDOS
Execute() function.  Execute() needs c:run to do it's magic.  If c:
isn't currently mounted, it asks for it.  If run isn't in c:, Execute()
fails.

[I usually just mail off answers to this kind of problem, but I've
seen essentially the same problem in slightly different contexts
enough times this month to warrant a posting]

-Dan Riley (dsr@lns61.tn.cornell.edu, dsr@crnlns.bitnet)
-Wilson Lab, Cornell U.
Technical Details
Message-ID: <6882@batcomputer.tn.cornell.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!ukma!mailrus!cornell!batcomputer!riley
References: <3015@sugar.uu.net>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!ukma!mailrus!cornell!batcomputer!riley
From: riley@batcomputer.tn.cornell.edu (Daniel S. Riley)
Newsgroups: comp.sys.amiga.tech
Subject: Re: ARexx path question
Keywords: ARexx, C:, path
Message-ID: <6882@batcomputer.tn.cornell.edu>
Date: 25 Nov 88 17:12:00 GMT
References: <3015@sugar.uu.net>
Reply-To: riley@tcgould.tn.cornell.edu (Daniel S. Riley)
Organization: Cornell Theory Center, Cornell University, Ithaca NY
Lines: 26