home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 735 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

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