home *** CD-ROM | disk | FTP | other *** search
- Path: status.gen.nz!codewrk!amiga3k!tparker
- From: tparker@amiga3k.codeworks.gen.nz (Tom Parker)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Breaking another task
- Date: 11 Jan 96 13:12:19 +1300
- Message-ID: <879.6584T792T487@codeworks.gen.nz>
- Reply-To: tparker@codeworks.gen.nz
- Organization: Not an Organization
- X-Newsreader: THOR 2.22 (Amiga;UUCP) *UNREGISTERED*
-
-
- Hi,
-
- I have written a program that puts a window on my editor's screen with a
- button to abort my compiler while it is compiling. It works great, but it does
- it in a very nasty way.
-
- I call executive's ps command, parse its output, and then send it to
- executive's kill command, to kill my smake and all its subtasks.
-
- What i would like to know, is how do i do what ps & kill do. At the very least
- i want to find the task structure of the compiler, so i can signal it, but i
- would like to be able to kill all the subtasks of smake, and smake itself,
- rather than single out the compiler.
-
- I don't mind using executive's functions, if they will do this easier than the
- normal system functions.
-
- I'm writing in c (sas/c 6.56), on wb 3.0.
-
- --
- Tom Parker - tparker@codeworks.gen.nz
- - 3:772/235.9@Fidonet
- - 41:649/235.9@Amiganet
-