AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
#Operatingsystems
#Servers
 View Only
  • 1.  How to kill another session?

    Posted 10/07/07 03:53 PM

    Originally posted by: SystemAdmin


    Hi, once upon a time my network connection has been broken. Since then, my disconnected session is always printed out whenever I use codew[/code] or codewho[/code] command.

    I tried first to codeps -aux | grep zip[/code] or code ps -ef | grep zip [/code] and then codekill -9 <zip_ID>[/code], and after codew[/code] I got code-ksh[/code]. So I killed this ksh, but still have "-".

    So, is there any way to kill this orphan session, or just restart the system (errrrghh) has been left? I realize my way is not ellegant and not leading to the right solution (the session still exists), so please advise me how to do it in the future in (possible) one quick, ellegant step.

    It's not strategic, but - you know - it'll be nice to know in the future.

    Thanx a log :)
    Rev
    #AIX-Forum


  • 2.  Re: How to kill another session?

    Posted 10/08/07 10:53 AM

    Originally posted by: hdkutz


    Hmm,
    who -Hu
    should list who is on the System, PID , etc.

    ps -ef|head -1;ps -ef|grep PROCESS_YOU_WANT_TO_KILL
    look for the Parent-PID

    ps -ef|grep Parent-PID
    If the Parent-PID is 1, DO NOT KILL, cause the Process belongs now to the init-Process.

    If not
    kill -9 Parent-PID
    should kill PROCESS_YOU_WANT_TO_KILL.

    HTH,
    ku
    #AIX-Forum


  • 3.  Re: How to kill another session?

    Posted 10/08/07 03:03 PM

    Originally posted by: SystemAdmin


    Thanx a lot. Funny thing is when I logged in few minutes before, the session disappeared - problably some of the system process done it. I wonder which one. I've been learning through whole of my life and probably die stupid.

    I'll replay (in test environment) the situation and try your advice. But I'm quite sure it'll help. If not - I'll let you know :-)

    So thanx again,
    Rev
    #AIX-Forum