Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
- fix in test_16 in conf sanity
[fs/lustre-release.git]
/
lustre
/
tests
/
runvmstat
1
#!/bin/sh
2
null() {
3
:
4
}
5
6
if [ "$1" == "-q" ]; then
7
echo "echo off"
8
ECHO="null"
9
shift
10
else
11
echo "echo on"
12
ECHO=echo
13
fi
14
vmstat 1 | while read LINE ; do
15
LINE="`date +%s`: $LINE"
16
$ECHO "$LINE"
17
[ "$1" ] && echo "$LINE" >> $1
18
done