<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
find the user you want to kill off;<br>
<br>
<font face="Courier New, Courier, monospace"># w -u richardw<br>
12:21:59 up 70 days, 21:00, 94 users, load average: 6.83, 5.00,
4.12<br>
USER TTY FROM LOGIN@ IDLE JCPU PCPU
WHAT<br>
richardw pts/2 richard 12:19 7.00s 0.18s 0.06s w
-u richardw</font><br>
<br>
<br>
Here is a handy script I use;<br>
<br>
<font face="Courier New, Courier, monospace">/usr/local/kill_pts<br>
<br>
# as root.<br>
# usage: # kill_pts pts/2<br>
ps --no-headers -t $1 | sort -nr | awk '{ print $1 }' | xargs
/bin/kill -15</font><br>
<br>
<div class="moz-cite-prefix">If you are a sudo user;<br>
<font face="Courier New, Courier, monospace">ps --no-headers -t $1
| sort -nr | awk '{ print $1 }' | xargs sudo /bin/kill -15</font><br>
<br>
<br>
If the target user is in as root, you may have to clean up the
bash;<br>
<br>
<font face="Courier New, Courier, monospace"># ps -t pts/2<br>
PID TTY TIME CMD<br>
26723 pts/2 00:00:00 bash<br>
</font><br>
i.e. <br>
<font face="Courier New, Courier, monospace">#kill -9 26723</font><br>
<br>
On 11/12/2020 11:18 AM, Tony Freehauf via Filepro-list wrote:<br>
</div>
<blockquote type="cite"
cite="mid:50444ebb-2920-9876-96ee-225701b701a5@ynotsoftware.com">what
is the correct way to kill users session? do i use
<br>
<br>
kill sighup (1) Pid number ?
<br>
<br>
or is it kill SIGHUP(1) ?
<br>
<br>
adivse needed
<br>
<br>
thanks - old tony
<br>
<br>
<br>
_______________________________________________
<br>
Filepro-list mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</a>
<br>
Subscribe/Unsubscribe/Subscription Changes
<br>
<a class="moz-txt-link-freetext" href="http://mailman.celestial.com/mailman/listinfo/filepro-list">http://mailman.celestial.com/mailman/listinfo/filepro-list</a>
<br>
</blockquote>
<br>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br />
<table style="border-top: 1px solid #D3D4DE;">
<tr>
<td style="width: 55px; padding-top: 13px;"><a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
<td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Virus-free. <a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avg.com</a>
</td>
</tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>