home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / acorn / 10450 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  1.7 KB

  1. Path: sparky!uunet!olivea!pagesat!netsys!agate!doc.ic.ac.uk!warwick!dcs.warwick.ac.uk!thughes
  2. From: thughes@dcs.warwick.ac.uk (Tom Hughes)
  3. Newsgroups: comp.sys.acorn
  4. Subject: Re: kill apps from cli?
  5. Message-ID: <1993Jan22.095903.22140@dcs.warwick.ac.uk>
  6. Date: 22 Jan 93 09:59:03 GMT
  7. References: <1993Jan21.125418.13682@aston.ac.uk>
  8. Sender: news@dcs.warwick.ac.uk (Network News)
  9. Organization: Department of Computer Science, Warwick University, England
  10. Lines: 27
  11. Nntp-Posting-Host: woodwind
  12.  
  13. In article <1993Jan21.125418.13682@aston.ac.uk> braindl@uhura.aston.ac.uk (David Brain) writes:
  14. >
  15. >
  16. >Would it be possible to write somthing that could kill apps running on the 
  17. >desktop from the cli...on a similar idea would it be possible to get a list
  18. >of running apps from the cli...like the unix ps command.
  19. >
  20. >Do such things exist?  would it be possible to write them ?
  21.  
  22. It's certainly possible to list the running tasks - you just call
  23. TaskManager_EnumerateTasks repeatedly, outputing the information. The
  24. other question is trickier, as you would have to send a Message_Quit
  25. to the task concerned, which can't be done unless you're a desktop
  26. task. I guess you'd have to have a module which was running as a
  27. desktop task and which queued kill requests from outside the desktop
  28. and carried them out as soon as you went back to the desktop.
  29.  
  30. Tom.
  31.  
  32. ============================================================================
  33. Tom Hughes, CS3
  34.  
  35. thughes@uk.ac.warwick.dcs            57 Shakleton Road
  36. csugk@uk.ac.warwick.csv              Earlsdon
  37.                                      Coventry
  38. (0203) 673584                        CV5 6HT
  39. ============================================================================
  40.