by Aromal Rajagopal | May 7, 2009 | Quick fixes, Technical |
This script will clear the apache logs, cpanel logs and the logs in /var. It will take a zipped backup before clearing logs. #!/bin/bash # Script to Clear Logs echo “Clearing Logs in /var…..” cd /var/log for i in `ls -lSh /var/log|grep -v gz|grep...
by Aromal Rajagopal | May 2, 2009 | Quick fixes, Technical |
This could be a very good utility to check the open ports in the server. #!/bin/sh export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin if [ -e /etc/master.passwd ]; then netstat -an | grep LISTEN | grep “*” | awk ‘{print $4...
by Aromal Rajagopal | Mar 15, 2009 | Quick fixes, Technical |
Description: The following script will determine the shared user type I.E normal shared user, reseller or resold. In addition the script will also display the number of number of ModRails or Mongrel instances and the port used. While entering a reseller or resold...