home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!mips!mips!munnari.oz.au!labtam!eyrie!guru!David_Cole
- From: David_Cole@guru.pub.uu.oz.au (David Cole)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: ARexx and shell commands (answer)
- Message-ID: <David_Cole.04uc@guru.pub.uu.oz.au>
- Date: 19 Aug 92 11:15:03 GMT
- Organization: Guru Meditation BBS
- Lines: 34
-
- G'day,
-
- In a message dated Mon 17 Aug 92 13:06, Olof Zachrisson wrote:
-
- GZ> I've been looking into ARexx recently, and tried the following
- GZ> program:
-
- GZ> /* a little test.. */
- GZ> dir
- GZ> say "I'm here!"
-
- GZ> Now, the second line, "dir", is supposed to be passed to the shell,
- GZ> doing
- GZ> a directory listing. But what I get is a "I'm here!", and nothing
- GZ> else!
-
- GZ> So what is the problem here?
-
- Basically, in order to call a CLI or Shell program, such as Dir, you have
- to use the "Address command" piece of code. So in order to allow your prog
- to execute as you would like, it should be written like this:
-
- /* a little test.. */
-
- address command 'c:dir'
- say 'I'm here!'
-
- And that's it!
-
- Hope this is some help,
-
- Dave
-
- -- Via DLG Pro v0.992
-