Bash Script Help Needed

Jason Edgecombe jason at rampaginggeek.com
Thu Jul 9 17:15:49 CDT 2009


Charlie Hill wrote:
> I need to write a script which will kill duplicate login users in Red Hat. 
> When the script determines a user has duplicate logins it will kill just the oldest login. The most recent login can not be killed.
>  
> For operational reasons we can not just limit logins to 1 login only. The duplicate logins are created when RF scanning guns drop off the network. When the gun user logs back on, it creates the duplicate user.
>  
> I would be very appreciative if the group can provide links / URLs to script repositories. I have limited skills with awk and pearl. 
>  
If the first login is disconnected from the network, then it should 
disappear on it's own after the network connection times out. Have you 
investigated why these orphaned session's don't time out?

Jason



More information about the Linux-PowerEdge mailing list