Code

check_host: Allocate a large-enough buffer for the host table.
[nagiosplug.git] / tools / oneliners
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