what the blog?

{upgrade in progress..}

Simple script to report RAID Controller fail

#!/bin/bash notify=”levin@mydream.com.hk” controllerstat=”/proc/scsi/FastTrak/0″ raidstatus=”`cat $controllerstat | grep Array | awk {‘print $7’} | sed s/'(‘// | sed s/’)’//`”   if [ $raidstatus != “OK” ]; then         echo “`cat $controllerstat`” | mail -s “`hostname`:RAID Controller detected a errors” $notify fi

Modify WordPress php mailer sender address.

By default, php mail function will use http server startup user as the sendmail “FROM” user. It’ll look better if the mail sent by a human readable mail address. find the wp-includes/functions.php   function wp_mail($to, $subject, $message, $headers = ‘’, $more = ‘’) { if( $headers == ‘’ ) { $headers = "MIME-Version: 1.0\n" . […]

Fatal error: Call to undefined function griffin_pagination() in /u01/mydream.com.hk/wwwroot/blog/wp-content/themes/griffin/index.php on line 23