diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-11-08 07:17:59 (GMT) |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-11-08 07:17:59 (GMT) |
commit | 4b8ebd84084b89dfd2763a29936482099142d04c (patch) | |
tree | fb09b51e24d2f8a9afc20dc1bb5b7dbecfba0adf /tools/oneliners | |
parent | fb59d108e9c72ad2782ae4bc0967f24c96bca03a (diff) | |
download | monitoring-plugins-4b8ebd84084b89dfd2763a29936482099142d04c.tar.gz |
some useful onliners
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@172 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'tools/oneliners')
-rw-r--r-- | tools/oneliners | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/oneliners b/tools/oneliners new file mode 100644 index 0000000..19d96a7 --- /dev/null +++ b/tools/oneliners | |||
@@ -0,0 +1,6 @@ | |||
1 | perl -ne '(m/AC_DEFINE(_UNQUOTED)?\(([^,]+)/) && print "$2\n";' configure.in | sort | uniq > DEFS | ||
2 | perl -ne '(m/^.undef (.*)$/) && print "$1\n";' plugins/config.h.in | sort | uniq | diff - DEFS | grep '>' | ||
3 | for f in plugins/check_*; do if test -x $f ; then ./$f --help > /dev/null; if [ $? -gt 0 ]; then echo $f failed; fi; fi; done | ||
4 | for f in plugins/check_*; do if test -x $f ; then ./$f --version > /dev/null; if [ $? -gt 0 ]; then echo $f failed; fi; fi; done | ||
5 | for f in check_*; do if test -x $f ; then ./$f --help > /dev/null; if [ $? -gt 0 ]; then echo $f failed; fi; fi; done | ||
6 | for f in check_*; do if test -x $f ; then ./$f --version > /dev/null; if [ $? -gt 0 ]; then echo $f failed; fi; fi; done | ||