home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / amiga / programm / 12479 < prev    next >
Encoding:
Text File  |  1992-08-19  |  1.1 KB  |  44 lines

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!mips!mips!munnari.oz.au!labtam!eyrie!guru!David_Cole
  2. From: David_Cole@guru.pub.uu.oz.au (David Cole)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: ARexx and shell commands (answer)
  5. Message-ID: <David_Cole.04uc@guru.pub.uu.oz.au>
  6. Date: 19 Aug 92 11:15:03 GMT
  7. Organization: Guru Meditation BBS
  8. Lines: 34
  9.  
  10. G'day,
  11.  
  12. In a message dated Mon 17 Aug 92 13:06, Olof Zachrisson wrote:
  13.  
  14.  GZ> I've been looking into ARexx recently, and tried the following
  15.  GZ> program:
  16.  
  17.  GZ>     /* a little test..  */
  18.  GZ>     dir                   
  19.  GZ>     say "I'm here!"
  20.  
  21.  GZ> Now, the second line, "dir", is supposed to be passed to the shell,
  22.  GZ> doing
  23.  GZ> a directory listing. But what I get is a "I'm here!", and nothing
  24.  GZ> else!
  25.  
  26.  GZ> So what is the problem here?
  27.  
  28. Basically, in order to call a CLI or Shell program, such as Dir, you have
  29. to use the "Address command" piece of code.  So in order to allow your prog
  30. to execute as you would like, it should be written like this:
  31.  
  32.      /* a little test.. */
  33.  
  34.      address command 'c:dir'
  35.      say 'I'm here!'
  36.  
  37. And that's it!
  38.  
  39.      Hope this is some help,
  40.  
  41.      Dave
  42.  
  43. -- Via DLG Pro v0.992
  44.