Results 1 to 2 of 2
Hello all!
I was fooling around with my home system today and was wondering if anyone has a kshell script that could monitor a user indefinitely. Also is there any ...
- 03-16-2010 #1Just Joined!
- Join Date
- Mar 2010
- Posts
- 2
Korn Shell Scripting / User Monitor
Hello all!
I was fooling around with my home system today and was wondering if anyone has a kshell script that could monitor a user indefinitely. Also is there any way to integrate this type of monitoring with log files using this scripting:
#!/bin/ksh/
select member
from v$logfile;
Sorry, but one more question, is there anyway to check if anyone has been "missing" or entering wrong passwords repeatedly?
Sorry, kinda new to the linux scene and i think my roomate is fooling around with my PC. thanks for any help.
SB
- 03-17-2010 #2Just Joined!
- Join Date
- Mar 2010
- Posts
- 2
Hey all again,
I managed to write this in a c-shell (because its WAYY easier
) but i can't get it to work the same in Korn-shell.
Could someone please help out, thanks for any aid
echo Enter user ID
read user
echo Enter period of time to be monitored
read input
period=$(($input * 3))
i=0
while test $i -lt $period;do
date>>logs
ps -e | grep $user>>logs
sleep 20
let i=i+1
done
cat logs


Reply With Quote