Results 1 to 18 of 18

Thread: What is equivalent of CtrlAltDel in Unix?

  1. #1

    Thread Starter
    Fanatic Member sbasak's Avatar
    Join Date
    Aug 2001
    Location
    Globe Trotter
    Posts
    524

    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.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    What is equivalent of CtrlAltDel in Unix?

  3. #3

    Thread Starter
    Fanatic Member sbasak's Avatar
    Join Date
    Aug 2001
    Location
    Globe Trotter
    Posts
    524

    ???



    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.

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169

    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

  5. #5
    Lively Member esmerelda's Avatar
    Join Date
    Sep 2002
    Location
    South Croydon, UK
    Posts
    68
    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...)

  6. #6
    Lively Member esmerelda's Avatar
    Join Date
    Sep 2002
    Location
    South Croydon, UK
    Posts
    68
    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...)

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    2 million???

  8. #8
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  9. #9

    Thread Starter
    Fanatic Member sbasak's Avatar
    Join Date
    Aug 2001
    Location
    Globe Trotter
    Posts
    524
    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.

  10. #10
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  11. #11

    Thread Starter
    Fanatic Member sbasak's Avatar
    Join Date
    Aug 2001
    Location
    Globe Trotter
    Posts
    524
    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.

  12. #12
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  13. #13
    Lively Member esmerelda's Avatar
    Join Date
    Sep 2002
    Location
    South Croydon, UK
    Posts
    68
    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*

  14. #14
    Lively Member esmerelda's Avatar
    Join Date
    Sep 2002
    Location
    South Croydon, UK
    Posts
    68
    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...

  15. #15
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  16. #16
    Lively Member esmerelda's Avatar
    Join Date
    Sep 2002
    Location
    South Croydon, UK
    Posts
    68
    You ever run the windows version? Obviously not...

  17. #17
    Hyperactive Member Emo's Avatar
    Join Date
    Jul 2000
    Posts
    428
    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²™¤»

  18. #18
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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
  •  



Click Here to Expand Forum to Full Width