Logo Background

Monitor Unix Running Process

  • As system administrator in Unix, you need to monitor running process on your Unix operating system using ps or so called process status.

    There is limitation on ps or process status where it display one time of the result of screen.

    And you need the result to be display periodically from time to time, so run the Unix command as below.

    Run Unix Monitoring Command

    $ while true
    do
    ps -fu Oracle
    sleep 5
    clear
    done

    What happen in this command was it will display the output of running process with the word Oracle in every 5 seconds by clearing the terminal screen.

    In short, you will see the refreshing screen of the process status which will keep on looping until you press CTL-C keypad.

    Related Posts

    Previous
    Next
    » Email Multiple Attachment Unix Command
  1. #1 Jayce
    October 31, 2009 11:20 pm

    This tip will come in handy when I get a unix to play with. ;)

    Post ReplyPost Reply
Leave a Comment