home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18180 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  1.5 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!rutgers!cbmvax!jesup
  2. From: jesup@cbmvax.commodore.com (Randell Jesup)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Problems with dos.library/RunCommand() and "C:Execute"
  5. Message-ID: <38340@cbmvax.commodore.com>
  6. Date: 5 Jan 93 23:26:24 GMT
  7. References: <1ia6viINN75l@wembley.uni-paderborn.de>
  8. Reply-To: jesup@cbmvax.commodore.com (Randell Jesup)
  9. Organization: Commodore, West Chester, PA
  10. Lines: 27
  11.  
  12. tron@wembley.uni-paderborn.de (Matthias Scheler) writes:
  13. >the following peace of code doesn't work and I don't know why. After "Execute"
  14. >has been called with "RunCommand()" stdio doesn't work on stdout anymore. A
  15. >"Please insert volume Result:" requester appears while the "PrintF()" is
  16. >executed. I use 39.106 and 39.29 on an A4000, but it doesn't work with OS 2.x,
  17. >too.
  18.  
  19. >char *Cmd = "S:PCD RAM:\n";
  20.  
  21. > if ((SegList=LoadSeg("C:Execute"))==NULL)
  22. ...
  23. > Result=RunCommand(SegList,4000L,Cmd,strlen(Cmd));
  24.  
  25.     The reason is that c:Execute merely sets up the input/etc fields of
  26. a shell to read commands from the script (possibly a modified copy of the
  27. script in t:Command...).  It doesn't spawn another process to run it, it
  28. expects only to be executed by a shell.
  29.  
  30.     You should be using SystemTags("execute s:pcd ram:",TAG_DONE);
  31.  
  32. -- 
  33. GNU Emacs is a LISP operating system disguised as a word processor.
  34.  - Doug Mohney, in comp.arch
  35.  
  36. Randell Jesup, Jack-of-quite-a-few-trades, Commodore Engineering.
  37. jesup@cbmvax.commodore.com  BIX: rjesup  
  38. Disclaimer: Nothing I say is anything other than my personal opinion.
  39.