I have the following script:
All it does is check the "who" for people who have been inactive for the past hour and then emails that list to me. Then with that list it runs the "deleteuser" command which will gracefully log them off.
The problem I have is while this script will work if it finds one user, it will fail and do nothing if it encounters multiple people.
How can I modify this to accept that there may be multiple people who are inactive for an hour and remove them?
There is a limit on the maximum number of arguments sh can fit in an argument list like that, but unless you have hundreds and hundreds of logins to kill I think the limit should be sufficient.
hi ,
i could see 50-60 oracle inactive session running under my application name, does this cause any issue.. or can this inactive session be excluded , if so how can we reduce them or exclude them , your inputs are much required.
my application runs on C++ with oracle , pro*c involved.... (1 Reply)
Hi All,
I have a written a test script which retrieves the status of active and inactive sessions from oracle DB, but i am receiving error while executing.
My script is
filepath="/home/ocsg/scripts/db_session_report/current_session_report.txt"... (1 Reply)
Hi, I am new to forum, I am wondering anyone can help me ?
Is there a command to tell whether a particular process is already inactive, so I can issue a kill command to end it. I have been encountering scenerio whereby users always shutdown abnormally by closing the windows, and my application... (12 Replies)
I would like to automatically logout from the system inactive users depending on their functions.
For example there are users that I would like to logout after 15 minutes of inactivity, but there are others that I would like to logout after 30 minutes of inactivity.
It's possible to do this??? (6 Replies)