Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Instantly share code, notes, and snippets.

@a2ikm
Last active September 3, 2016 11:16
Show Gist options
  • Save a2ikm/4ea00d6b9d27c8a30a021abe2b6f166a to your computer and use it in GitHub Desktop.
Save a2ikm/4ea00d6b9d27c8a30a021abe2b6f166a to your computer and use it in GitHub Desktop.
#!/bin/sh
# デフォルトで1秒間隔
interval=${1:-1}
vmstat $interval | awk '{print strftime("%y/%m/%d %H:%M:%S"), $0} {fflush() }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment