#!/bin/sh if [ "$1" = "--help" ] ; then echo vps-compare collect-sys echo vps-compare collect-lxc echo vos-compare without argument prints the difference report echo vps-compare accepts the --all option to print all processes echo including non offending ones exit 0 elif [ "$1" == "collect-sys" ] ;then vps -c /root/vps-sys.log elif [ "$1" == "collect-lxc" ] ;then vps -c /root/vps-lxc.log -x else echo "========= System ========" vps -C /root/vps-sys.log $* echo "========= lxc ========" vps -C /root/vps-lxc.log -x $* fi