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