|
-
Oct 28th, 2002, 05:41 AM
#1
Thread Starter
Fanatic Member
What is equivalent of CtrlAltDel in Unix?
In Unix, the "ps -ef" command shows all running processes. This is probably equivalent of Ctrl+Alt+Del in Windows. But I like to know how one can determine whether a process is "Not Responding" ?
Can anyone help?
Thanks.
Life is a one way journey, not a destination. Travel it with a smile and never regret anything.
Yesterday is history, tomorrow is a mystery, today is gift - that's why we call it present.
-
Oct 28th, 2002, 06:33 AM
#2
What is equivalent of CtrlAltDel in Unix?
-
Oct 28th, 2002, 08:38 AM
#3
Thread Starter
Fanatic Member
???

I didn't understand what you meant!
Life is a one way journey, not a destination. Travel it with a smile and never regret anything.
Yesterday is history, tomorrow is a mystery, today is gift - that's why we call it present.
-
Oct 29th, 2002, 11:36 AM
#4
Monday Morning Lunatic
Re: What is equivalent of CtrlAltDel in Unix?
Originally posted by sbasak
In Unix, the "ps -ef" command shows all running processes. This is probably equivalent of Ctrl+Alt+Del in Windows. But I like to know how one can determine whether a process is "Not Responding" ?
Can anyone help?
Thanks.
Well...if it's got 0% CPU usage, or top thinks it's a zombie, perhaps.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Oct 29th, 2002, 07:48 PM
#5
Lively Member
Stupid answer I regret posting: If you've got a super user account and are running solaris then type halt and when you get the ok prompt type boot, but otherwise, i'm not sure...
Good answer you'll listen to: Type "ps aux" and it should list everything... including cpu usage, which if it's 0%, then type "kill -9 " and the processes ID number (second column from the left I think...)
-
Oct 29th, 2002, 07:51 PM
#6
Lively Member
Originally posted by mendhak
I feel like that sometimes... Expecially when I'm compiling C code and it gives me 2 million errors (yes, this has actually happened, and all because of a rogue " in a header file...)
-
Oct 30th, 2002, 12:36 AM
#7
-
Oct 30th, 2002, 03:45 AM
#8
Monday Morning Lunatic
Normally the compiler gives up at about 200
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Oct 30th, 2002, 04:58 AM
#9
Thread Starter
Fanatic Member
ps -ef produces following columns
UID PID PPID C STIME TTY TIME CMD
UID = user
PID = process id
PPID = process id of parent process
C = processor utilization for scheduling
STIME = start time
TTY = controling terminal
TIME = cumulative CPU time
CMD = command to create the process
Now can you please tell me what column value will indicate a "Not responding" process and how can I stop that particular process?
Life is a one way journey, not a destination. Travel it with a smile and never regret anything.
Yesterday is history, tomorrow is a mystery, today is gift - that's why we call it present.
-
Oct 30th, 2002, 05:15 AM
#10
Monday Morning Lunatic
The reason Windows decides that something's not responding is when its message queue starts to fill up.
Under Unix, the architecture is different so there's almost no way to tell.
If your process isn't responding, then you'll notice because it ain't doing anything, or it's doing something different than it should be (i.e. infinite loop = 100% CPU usage, which is a dead giveaway for anything other than SETI).
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Oct 30th, 2002, 06:02 AM
#11
Thread Starter
Fanatic Member
Thanks, just wondering what's message queue...?
And how do I get to know whether a "proces ain't doing anything"? Will it show 100 C value (CPU utilization) under ps -ef?
Life is a one way journey, not a destination. Travel it with a smile and never regret anything.
Yesterday is history, tomorrow is a mystery, today is gift - that's why we call it present.
-
Oct 30th, 2002, 07:56 AM
#12
Monday Morning Lunatic
You'd have to know the internals of the Win32 API to know about the message system, but messages get passed around to all Windows programs.
Don't worry about it.
It depends on how the program's died. Basically, if it stops being useful to you, you *know* it's stopped responding!
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Oct 30th, 2002, 10:23 AM
#13
Lively Member
Originally posted by mendhak
2 million???
400,000 lines of code that compiles into a dynamically compilable MUD engine. It's a ***** if you make a mistake, and the error which showed up was in a header file which is needed by all the files. *grumbles*
-
Oct 30th, 2002, 10:26 AM
#14
Lively Member
Originally posted by parksie
If your process isn't responding, then you'll notice because it ain't doing anything, or it's doing something different than it should be (i.e. infinite loop = 100% CPU usage, which is a dead giveaway for anything other than SETI).
I like seti, but it eats up your memory so much you wish that earth was the only planet in the universe...
-
Oct 30th, 2002, 12:24 PM
#15
Monday Morning Lunatic
Code:
[mike@relativity mike]$ ps aux | egrep '(seti|MEM)'
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
mike 23795 93.6 3.0 17972 15680 vc/1 RN Oct29 1280:24 ./setiathome
...3% for me, which == 15MiB *shrug*
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Oct 30th, 2002, 02:15 PM
#16
Lively Member
You ever run the windows version? Obviously not...
-
Oct 30th, 2002, 02:42 PM
#17
Hyperactive Member
Originally posted by esmerelda
I like seti, but it eats up your memory so much you wish that earth was the only planet in the universe...
my SETI usually take about 15MB.... but I don't really like teh 100% CPU usage all the time
-Emo
-=VB6 Enterprise Edition=-
-=VC++6Enterprise Edition=-
«¤E³m°O²™¤»
-
Oct 30th, 2002, 04:34 PM
#18
Monday Morning Lunatic
It's on Idle, it won't run if anything else needs it.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|