I have been tasked to write a script that will prohibit new logins (touch
/etc/nologin) and terminate existing processes and connections of users
that are already logged into a system when certain missions are to be
supported. My initial plan is to compare the output of `ps -ef` with
the /etc/passwd database and write the script so that it will kill the
process ID's of the users listed in the passwd file. While do-able, it
Have any of you discovered a better way to accomplish this task, or have
you already written a similar script that I could copy?
Thanks in advance, and I will summarize.
The winning response came from Tim Lindgren who suggested I try a
program called "Idled", available at:
I compiled, configured, and wrote a script file to automatically activate
the program, and wallah! It works perfectly for my application.
Special thanks to all those people who replyed:
Craig H. Barker
Systems Engineer - TYBRIN Corporation
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:26 CDT