Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!samsung!munnari.oz.au!yoyo.aarnet.edu.au!sirius.ucs.adelaide.edu.au!jpotter From: jpotter@ucs.adelaide.edu.au (Jonathan Potter) Newsgroups: comp.sys.amiga.programmer Subject: Execute() questions Message-ID: <2788@sirius.ucs.adelaide.edu.au> Date: 9 Apr 91 01:38:12 GMT Organization: Information Technology Division, The University of Adelaide, AUSTRALIA Lines: 43 I was wondering if anyone can give me some advice on Execute(). Basically, my problem is this: In a Directory Utility I have written, I want to be able to a) Run programs with no output window, b) Run programs with output, c) if possible, Run programs with output & input, d) Run programs asynchronously, and e) if possible, Run programs async. with output (& input) Now, a basic Execute() call works fine with most programs for a) and b), and if I prefix the commandstring with c:run, it works fine for d). Is there any easy way to get c) working, but NOT have to type "endcli" to get the window to close afterwards? On a similar, but different note, is there anyway to get programs launched via Execute() to inherit YOUR current directory, and not what I assume is the default (boot) directory. I have tried using the arp.library's ASyncRun() routine, as this allows you to inherit the current dir., as well as have output & input for async. programs, and also allows you to set the stack & priority. However, there seem to be quite a lot of programs that do not run from ASyncRun() at all, so the disadvantages outweigh the advantages. Do programs launched with Execute() inherit your stack size & priority? I have been tackling this one on & off for the last 2 months or so, and I would really appreciate any advice anyone can give me. Thanks! Jon /----------------------------------------------------------------------------\ | Jonathan Potter | | Life is like a piece of | | P.O. Box 289 | jpotter@itd.adelaide.edu.au | spinach... | | Goodwood, SA | FidoNet : 3:680/829 | | | Australia 5034 | | Sort of green and wrinkly | \----------------------------------------------------------------------------/ -- | Jonathan Potter | | Life is like a piece of | | P.O. Box 289 | jpotter@itd.adelaide.edu.au | spinach... | | Goodwood, SA | FidoNet : 3:680/829 | | | Australia 5034 | | Sort of green and wrinkly |