home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!pagesat!netsys!agate!doc.ic.ac.uk!warwick!dcs.warwick.ac.uk!thughes
- From: thughes@dcs.warwick.ac.uk (Tom Hughes)
- Newsgroups: comp.sys.acorn
- Subject: Re: kill apps from cli?
- Message-ID: <1993Jan22.095903.22140@dcs.warwick.ac.uk>
- Date: 22 Jan 93 09:59:03 GMT
- References: <1993Jan21.125418.13682@aston.ac.uk>
- Sender: news@dcs.warwick.ac.uk (Network News)
- Organization: Department of Computer Science, Warwick University, England
- Lines: 27
- Nntp-Posting-Host: woodwind
-
- In article <1993Jan21.125418.13682@aston.ac.uk> braindl@uhura.aston.ac.uk (David Brain) writes:
- >
- >
- >Would it be possible to write somthing that could kill apps running on the
- >desktop from the cli...on a similar idea would it be possible to get a list
- >of running apps from the cli...like the unix ps command.
- >
- >Do such things exist? would it be possible to write them ?
-
- It's certainly possible to list the running tasks - you just call
- TaskManager_EnumerateTasks repeatedly, outputing the information. The
- other question is trickier, as you would have to send a Message_Quit
- to the task concerned, which can't be done unless you're a desktop
- task. I guess you'd have to have a module which was running as a
- desktop task and which queued kill requests from outside the desktop
- and carried them out as soon as you went back to the desktop.
-
- Tom.
-
- ============================================================================
- Tom Hughes, CS3
-
- thughes@uk.ac.warwick.dcs 57 Shakleton Road
- csugk@uk.ac.warwick.csv Earlsdon
- Coventry
- (0203) 673584 CV5 6HT
- ============================================================================
-