Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google site




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 06-24-2009
enator45 enator45 is offline
Registered User
 

Join Date: Jun 2009
Posts: 7
script to log free mem and disk space

I'm just learning shell scripting and am new to Unix/Linux. For the past week I've been logging how much free mem is on my server by using the
'$ top' command, and the free disk space in a few directories by doing
'$ df -h'.

It sucks doing that every hour. Can you help me write a script that will do it for me?
Sponsored Links