Create the new file roundcube.sh and insert the following code. #!/bin/sh for ROUNDCUBE in `ps aux | grep roundcube | awk -F ” ” ‘{print $10}’ | awk -F “:” ‘{print $1}’`; do if [ $ROUNDCUBE -ge 20 ]; then pkill -u cpanelroundcube echo “kill roundcube process roundcube”; fi done You can add the cron […]
See MoreTag: cpanel web hosting
Script to kill Roundcube stuck process !!
Create the new file roundcube.sh and insert the following code.#!/bin/shfor ROUNDCUBE in `ps aux | grep roundcube | awk -F ” ” ‘{print $10}’ | awk -F “:” ‘{print $1}’`;doif [ $ROUNDCUBE -ge 20 ]; thenpkill -u cpanelroundcubeecho “kill roundcube process roundcube”;fidoneYou can add the cron job to run the above script after a specific […]
See MoreHow to use cgi script to check the Server uptime .
The following script you can use to check the Server uptime? root@admin[/usr/local/apache/cgi-bin]# nano loads#!/bin/bash echo Content-type: text/plainecho echo $(hostname)echo “=>”echo $(uptime)
See More