Probably simple.. but... what's the command for...
AIXThis forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Probably simple.. but... what's the command for...
basically, this is what i'd like to be able to do.
I'l like to be able to logoff or kill remote users...
because when I do a w command I get a user (root actually) with a strange number for where the IP usually resides.
Here is a cut and paste of this user:
root pts/4 Feb 16 10:25 (:0.0)
now i'd like to be able to kill this user...
I've searched the net for a command to do this but came up empty handed.. i'm sure it's fairly simple, but i can't find out anything that will help me @ this point.
never mind... i found it out... lol... ps -ft pts/4 to find out the PID to kill
then i did a kill -9 PID and it worked perfect...
someone walked me though it a few days ago.. not for the same thing.. but i couldn't remember... and i just started to try and I guess my memory is better then I thought
kill -9 ? .... why don't you use kill -15 first to see if you can clean up your child procs. The -9 signal cannot be caught by a sig handler and therefore orphans child procs that could be doing any nunber of things. At least if you kill -15 and it works you get a clean up. kill -15 should work in most cases.
You're right, Mark.
Moreover, if Notorious Vr wants to automate the things in a script, he could
kill -15 $PID ; sleep 12; kill -9 $PID # kill -9 just in case kill -15 did not work
Hi, I use FC2, I was able to find the PID for a user that is on pts/1 using who -u,
but kill -15 gives "no such process". The user appears to be logged on for many
days. Any ideas?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.