You can easily modify the script to use any path to any site, but for my purposes (in use with a shared hosting spanel account, I use the /home//www as a default path.
To run the script I would recommend adding the script to the cron like so: */5 * * * * ruby ./zencart_hack_check.rb cpanelaccount1,two,three [email protected] webmaster
An example that I used was: */15 * * * * /bin/bash -l -c "/opt/ruby-enterprise-1.8.7-2010.01/bin/ruby /home/bin/zencart_hack_check.rb site1,site2,site2 [email protected] [email protected] >/dev/null 2>&1"
Enjoy!