no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | tech:linux:check_swap [2015/02/10 12:51] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Check pswpin and pswpout ====== | ||
| + | Script to check '' | ||
| + | <code bash> | ||
| + | #!/bin/bash | ||
| + | cd / | ||
| + | TS=$(date +%Y%m%d_%H%M%S); | ||
| + | cat / | ||
| + | PSZ=`grep -c " | ||
| + | if [ $PSZ -eq 0 ]; then | ||
| + | cat log/ | ||
| + | fi | ||
| + | </ | ||
| + | Cron entry | ||
| + | < | ||
| + | 0, | ||
| + | </ | ||