Last active
September 3, 2016 11:16
-
-
Save a2ikm/4ea00d6b9d27c8a30a021abe2b6f166a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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