How to Display Message to User after kicking them out with "pkill -u $user"
I'm running a script that kicks specified users off my server after a specified time.
However, after the user is kicked off, I would like to display a message explaining to the user why they were kicked off.
I've tried the ".bash_logout" file but the message displays only after the user logs themselves out, not after my script kicks them off.
I appreciate any help with this - thank you!
|