Find the answer to your Linux question:
Results 1 to 2 of 2

Thread: shell script

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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.

  2. #2
    Linux User
    Join Date
    Jan 2007
    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