Skip to content

Instantly share code, notes, and snippets.

@suin
Created December 6, 2011 13:15
Show Gist options
  • Save suin/1438173 to your computer and use it in GitHub Desktop.
Save suin/1438173 to your computer and use it in GitHub Desktop.
cron + uptimeでロードアベレージのログを取るやつ ref: http://qiita.com/items/1305
echo `date +"%Y-%m-%d %H:%M:%S"` `uptime | awk '{print $10, $11, $12}'` >> /var/log/uptime.log
# uptime -V
procps version 3.2.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment