*

Welcome, Guest. Please login or register.
Did you miss your activation email?

Puppy Linux Lucid 5.1 (lupu510) for the XO-1 is here!
Pages: [1]
Print
Author Topic: How to kill activities  (Read 5180 times)

How to kill activities

BruceM
Commenter

Posts: 15


January 02, 2008, 03:46:18 PM

Like some other folk, I sometimes get an Activity hung while it's "Starting..."; it just blinks forlornly forever!  (This happens with Write, it seems, when it tries to open anything but plain txt or a file it has created, but I have also had Browse and even Terminal hang this way.)  I know that I can Stop my other activities and reboot, but I'm hoping for a way of killing hung activities without rebooting.  Presumably, this would be through the Terminal, but I'm reluctant to start killing processes without knowing what I'm doing!

Thanks for any suggestions,
Bruce
Logged

#1 Re: How to kill activities

jenpc
Contributor
*
Posts: 66

Received March 26, 2008!


January 02, 2008, 04:55:30 PM

One way to kill the activity is, as you expected, from the Terminal.  From the terminal you can do:
  • ps -ef | grep sugar-activity
to get a list of the sugar activities currently running and their process numbers.  This prints out in a tabular format.  The first column is the process owner (e.g. root or olpc) and the second column is the process number.  Suppose your process number is 1471.  Then the command to enter to kill that process is
  • kill 1471

Make sure you enter the process number from the 2nd column (the left-most number) and not the one in the 3rd column.

If the process owner is root, then you would first need to "su" to become the superuser before you could kill the process.  However, from what I've seen the sugar activities run as olpc not as root.

Hope this helps!

-Jen
Logged

#2 Re: How to kill activities

Jovi
Contributor
*
Posts: 40


WWW
January 03, 2008, 10:19:12 AM

Another trick to kill "stuck" Activities is to restart Sugar. This is a little quicker than rebooting, but probably slower than any other methods. However, it should be very effective, as Sugar will take all of the Activities with it.

You'll want to stop any Activities that are working OK before doing this, since they'll be killed too.

Press the "ctrl", "alt", and "erase" keys all at the same time. (Or, "erase the diamonds", if that's easier to remember.)

(For you X-Windows users out there, if this sounds familiar, it should. We're killing the X server, which Sugar acts as the "window manager" for.)
Logged

#3 Re: How to kill activities

BruceM
Commenter

Posts: 15


January 03, 2008, 01:23:16 PM

Thanks to Jen and Jovi for helpful suggestions!
Logged
Pages: [1]
Print
Jump to:  

Welcome, Guest. Please login or register.
Did you miss your activation email?
September 09, 2010, 05:31:00 AM

Login with username, password and session length
Recent Topics
[Today at 12:48:19 AM]

by anna
[September 08, 2010, 07:31:31 PM]

[September 08, 2010, 01:39:38 AM]

[September 07, 2010, 08:19:25 PM]

[September 06, 2010, 09:19:36 PM]

[September 05, 2010, 09:25:21 PM]

[August 30, 2010, 11:26:07 PM]

[August 30, 2010, 11:23:56 PM]

[August 30, 2010, 10:40:34 AM]

[August 28, 2010, 10:00:01 PM]
Members
Total Members: 4559
Latest: nikh105
Stats
Total Posts: 31138
Total Topics: 3760
Online Today: 71
Online Ever: 220
(February 05, 2009, 11:29:32 AM)
Users Online
Users: 1
Guests: 37
Total: 38