In this post, we will explain how to setup failover on rundeck. Rundeck officially doesn’t supports failover. This approach we tested on Centos 6 and its working fine. Moreover, use this approach on your own risk 😛 Assumption: This post assumes that rundeck is running on host1 listens on port… Continue Reading Rundeck Failover Setup

Sometimes, we need the mail logs to find out the reason why the mails has been bounced back. The following script will help you to find the same. Actually, this type of script needed for the server which is used for email marketing application.   As most of the email… Continue Reading Script to identify the reason for bounced back emails

CXS is a paid scanner which is more compatible with cPanel servers. The following script is to scan the server using CXS and will send the scan report to your email address. ===== #!/bin/bash DATE=$(date +%F_%H:%M) REPORT=/root/cxs-{DATE}.txt HOST=$(hostname) CXS=$(which cxs) EMAIL_ID=”youremail@domain.tld” $CXS –allusers –generate –report $REPORT if [ -s $REPORT… Continue Reading Script to scan the server using CXS

search=”123″ tar -tf one.tar | while read filename do if [ -f “${filename}” ] then mv “${filename}” “${filename}.sav” fi # tar -xf one.tar “${filename}” # found=`grep -l “${search}” “${filename}”` if [ ! “${found}””X” = “X” ] then echo “Found \”${search}\” in \”${found}\”” grep “${search}” “${filename}” echo “” fi # if… Continue Reading Script to grep a word inside a tar file