##################################################################### #!/bin/bash # # script to see wether or not some processes don't show up using ps # # (output should be the same) and it will check some other stuff # # # # repo@beginnerslinux.org # # http://beginnerslinux.org # ##################################################################### ls -d /proc/* |grep [0-9]|wc -l; ps ax|wc -l >> /tmp/secure.txt echo"" >> /tmp/secure.txt echo "################################################################################################" >> /tmp/secure.txt echo"" >> /tmp/secure.txt echo "look for .rhosts files" >> /tmp/secure.txt /usr/bin/find /home -name .rhosts >> /tmp/secure.txt echo"" >> /tmp/secure.txt echo "################################################################################################" >> /tmp/secure.txt /usr/bin/mail -s "System check CANNABIS" root