Find the answer to your Linux question:
Results 1 to 2 of 2
please i'm a newbie in linux nd would like an expert show me how to develop a shell script that can determine cpu and memory usage for my distro(suse) and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2009
    Posts
    6

    shell script


    please i'm a newbie in linux nd would like an expert show me how to develop a shell script that can determine cpu and memory usage for my distro(suse) and get an alert if it exceeds a given limit say 95% usage.
    Thanks

  2. #2
    tpl
    tpl is offline
    Linux User
    Join Date
    Jan 2007
    Location
    cleveland
    Posts
    476
    welcome to the forum

    > memory usage idea:

    free | awk '/^Mem/{print $3/$2}'

    rig yr own alarm
    the sun is new every day (heraclitus)

Posting Permissions

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