Amiga.org

Operating System Specific Discussions => MorphOS => MorphOS -- Application questions and support => Topic started by: XDelusion on June 25, 2010, 10:16:31 PM

Title: Kill running programs
Post by: XDelusion on June 25, 2010, 10:16:31 PM
So how does one kill a program that will not close and is hogging up memory?

OWB does this sometimes when you try to download a file and it tries to load it as a web page instead.
Title: Re: Kill running programs
Post by: lsmart on June 25, 2010, 10:22:21 PM
I usually use scout to kill the process and exorcist to get rid of any screens or windows if the app is already dead. Both can be found at OS4depot IIRC.
Title: Re: Kill running programs
Post by: XDelusion on June 25, 2010, 10:23:34 PM
And this will work with MorphOS?
Title: Re: Kill running programs
Post by: Gulliver on June 25, 2010, 10:34:11 PM
Get Scout for MOS on Aminet

http://aminet.net/util/moni/Scout_mos.lha
Title: Re: Kill running programs
Post by: Piru on June 25, 2010, 10:39:55 PM
Quote from: Gulliver;567286
Get Scout for MOS on Aminet

http://aminet.net/util/moni/Scout_mos.lha
Iirc scout requires plethora of 3rd party MUI classes. If it fails to start you can use Tools/Snoopium to find out which.
Title: Re: Kill running programs
Post by: Golem!dk on June 25, 2010, 11:21:51 PM
Quote from: XDelusion;567280
So how does one kill a program that will not close and is hogging up memory?

OWB does this sometimes when you try to download a file and it tries to load it as a web page instead.

On MorphOS you can use iKill, it's a shell command included with the system, it will take taskname as an argument, with no arguments the pointer changes to a crosshair, be careful where you click or hit escape if you change your mind.
Title: Re: Kill running programs
Post by: Fab on June 26, 2010, 01:03:36 AM
Quote from: XDelusion;567280
So how does one kill a program that will not close and is hogging up memory?

OWB does this sometimes when you try to download a file and it tries to load it as a web page instead.

What kind of link does that for you? If it happens, it's most likely because the server doesn't set the proper mimetype and sends for instance a binary file as text/plain, which OWB would try to display, by default.

Fortunately, you can change that behaviour by going to OWB mimetype settings, and adding the extension/mimetype for the link, and set the action to download or ask (similar to ibrowse mimetype settings).

But anyway, OWB shouldn't crash while viewing plain text files (unless it's really really big and webkit runs out of memory, not even sure it would).
Title: Re: Kill running programs
Post by: MelbourneBen on June 26, 2010, 03:36:13 AM
Is there a way to kill running programs or processes in worbench 3.1 from the shell?
Title: Re: Kill running programs
Post by: lsmart on June 26, 2010, 12:00:07 PM
Quote from: MelbourneBen;567321
Is there a way to kill running programs or processes in worbench 3.1 from the shell?

Most probably yes (Aminet is your friend), but why would you want to use the shell? Isn´t it easier to click on a process, than to type its name or even find the PID, etc?

I used ARTM on 3.1 .. which is of course a GUI program. But there are a lot of other softwasres that can do the same thing.
Title: Re: Kill running programs
Post by: XDelusion on June 26, 2010, 12:02:28 PM
Some programs run in their own screen and can't be clicked on.
Title: Don´t kill ´em yet! Try to break ´em first.
Post by: lsmart on June 26, 2010, 12:08:36 PM
Quote from: XDelusion;567284
And this will work with MorphOS?

Oh, I didn´t notice the cat on your AV is actually chasing butterflies:kitty:.
Well sorry, I currently don´t play in the blue team. Maybe there is something better than Scout on MOS.

Anyways - usually you don´t get back all of your resouces when the polite "break" isn´t working and you really have to kill the process. Good software should not require the user to do such things, right?
Title: Re: Kill running programs
Post by: Golem!dk on June 26, 2010, 12:40:27 PM
Quote from: XDelusion;567358
Some programs run in their own screen and can't be clicked on.

Why not?
Title: Re: Kill running programs
Post by: XDelusion on June 26, 2010, 07:24:42 PM
If I'm wrong, by all means correct me, it'll make me a happy camper.
Title: Re: Kill running programs
Post by: Golem!dk on June 26, 2010, 07:40:58 PM
Quote from: XDelusion;567415
If I'm wrong, by all means correct me, it'll make me a happy camper.

Shell windows are MUI and you can move them (jump) to any public screen, alternatively some hotkey launching of iKill would allow you to start it on any screen.
Title: Re: Kill running programs
Post by: kolla on June 26, 2010, 10:00:22 PM
But if they are pubscreens, then it's hardly "their own screen" :)
Title: Re: Kill running programs
Post by: XDelusion on June 27, 2010, 04:10:41 AM
Shogo does not use MUI. It is in it's own screen. I can't click on it from the desktop obviously.
Title: Re: Kill running programs
Post by: Fab on June 27, 2010, 04:32:29 AM
Quote from: XDelusion;567468
Shogo does not use MUI. It is in it's own screen. I can't click on it from the desktop obviously.

Ikill can also use an argument when used from shell: the task name. Not sure it's particularly handy, though.

There's also "freeze" command, to freeze and unfreeze a task from shell. And finally, you can also freeze tasks with scout, and once related tasks are frozen, you can in theory hope to close related screens/windows manually without trouble.
Title: Re: Kill running programs
Post by: XDelusion on June 27, 2010, 04:35:32 AM
EDIT: Never mind, I catch your meaning now.

Does iKill have docs somewhere?
Title: Re: Kill running programs
Post by: Golem!dk on June 27, 2010, 12:40:17 PM
Quote from: XDelusion;567470
EDIT: Never mind, I catch your meaning now.

Does iKill have docs somewhere?


Not AFAIK, but from a users viewpoint the operation is fairly simple, I think the "i" in the name stands for intuition, so getting rid of intuition windows + related tasks is pretty much what it does. The single argument you can give it on the command line is a taskname, you can use the TaskList command to see current task states. There is no safe way to reclaim resources from dead tasks, so once you've saved whatever you're working on you should probably consider rebooting.
Title: Re: Kill running programs
Post by: XDelusion on June 29, 2010, 04:09:24 AM
Tasklist, the secret command I needed to make sense of all this. Thank you!
Title: Re: Kill running programs
Post by: AmigaHeretic on June 29, 2010, 04:50:16 AM
Quote from: XDelusion;567280
So how does one kill a program that will not close and is hogging up memory?

OWB does this sometimes when you try to download a file and it tries to load it as a web page instead.


I use this on 3.9 with pretty good success.  Some things crash pretty bad and when you try to kill them the system reboots.

http://aminet.net/package/util/misc/Murderer

Have know idea how/if it would work on MorphOS.
Title: Re: Kill running programs
Post by: XDelusion on June 29, 2010, 04:54:16 AM
Seems to take a little while to load on MorphOS, but it does indeed load. :)

Will give it a go next time I have a crash seeing as it has a GUI, otherwise I will just have to resort to the command line method.