home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!rpi!uwm.edu!rutgers!cbmvax!jesup
- From: jesup@cbmvax.commodore.com (Randell Jesup)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: System() and pr_ConsoleTask
- Message-ID: <34571@cbmvax.commodore.com>
- Date: 22 Aug 92 00:43:02 GMT
- References: <paulk.15ls@terapin.com>
- Reply-To: jesup@cbmvax.commodore.com (Randell Jesup)
- Organization: Commodore, West Chester, PA
- Lines: 30
-
- paulk@terapin.com (Paul Kienitz) writes:
- >Why do people traditionally pass a window filehandle to System() for input and
- >NULL for output? There's nothing in the documentation to support this -- what
- >is it for?
-
- It's something that has never been really documented (but has always
- been there since 1.x). If you pass NULL for output to Execute() or System(),
- it will open "*" to get an output filehandle. If you pass an interactive
- input filehandle, it will set your pr_ConsoleTask to point to that window,
- and redirect signals from that window to the system/execute process (using
- ACTION_CHANGE_SIGNAL) before opening "*".
-
- >The other day I found that when I run my program which opens a CON: window and
- >then runs a program in it with System(command, SYS_Input, windowhandle,
- >SYS_Output, NULL, TAG_DONE) -- woops, make that SystemTags -- running UnZip 4.1
- >causes its output to go to the parent CLI window instead of to the window I
- >gave it, EVEN THOUGH I had specifically pointed my own pr_ConsoleTask to the
- >new window beforehand, and it's supposed to copy that from its parent process.
- >The new CLI inside System should be completely unaware of the original CLI
- >window.
-
- I'm afraid I can't figure out what went wrong from that description.
-
- --
- "Rev on the redline, you're on your own; seems like a lifetime, but soon it's
- gone..." Foreigner
- -
- Randell Jesup, Jack-of-quite-a-few-trades, Commodore Engineering.
- {uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.cbm.commodore.com BIX: rjesup
- Disclaimer: Nothing I say is anything other than my personal opinion.
-