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

+ First, we would need to add the FTP login details in .netrc file. If this file is not present then you can create new .netrc file. Please note that the permission of this file should be 600. ——————- machine IPADDDRESS login username password password ——————- + Create a backup… Continue Reading FTP backup scipt for all the mysql databases

How to remove space in front of a word in a file? This is a simple script to show how to remove space in a front of a word from a file. You can learn about this simple command for removing the space in front of a word and execute… Continue Reading Remove a space in front of a word in a file

Using For Loop to Rename All Files in a Folder This is the batch script for windows to rename all files in a folder on windows. This works well perfectly. This was useful for me. It may help others to do the same. I was worried to change the files name… Continue Reading Using For Loop to Rename All Files in a Folder

The following script is used to scan the server for viruses present in the server by using clamscan. Note that you will need install clamscan. This script will send an email to you after completion of the scan. Mention your mail address in EMAIL_ line. —————————————- #!/bin/bash EMAIL_=Your email address… Continue Reading script for scanning the server by using clamscan : CRON