Find the answer to your Linux question:
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 ...
  1. #1
    Just 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

  2. #2
    Just 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...