View Single Post
  #14  
Old 1st January 2008, 14:48
davy davy is offline
Member
 
Join Date: Aug 2007
Posts: 43
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by djtremors
That script doesn't do a heck of alot of checking and usually just works out of the box for me.. it was something is quickly created, then modified due to some other clam alerts i wasn't aware of and then got a little messy.

I've written a PHP version which hopefully will just work on every distro so you just need to make sure you have commands like tar installed.
it's not verbose on the command line at the moment but does the job and sends an email on errors or completion.

give it a try and let me know how you go. I did have some code there which could make the script auto update itself incase of fixes/updates but it's not only not used but i later thought people would worry about it's security so I cancelled going further. It was only going to allow to download and alert to change to the new script (not actually call it ever)..

anyhow, give it a try and let me know of problems. My direct email is in the file.

http://www.djtremors.com/downloads/clamavupdate.php.txt (remove .txt after download of course )
md5 0cab5eefc10ace6deead547dce817c95
I did run the above script.the error is below.

[root@server1 ~]# ./clamavupdate.php
./clamavupdate.php: line 1: ?php: No such file or directory
./clamavupdate.php: line 9: [admin]: command not found
./clamavupdate.php: line 12: [mirror][]: command not found
./clamavupdate.php: line 13: [mirror][]: command not found
./clamavupdate.php: line 16: [logfreshclam]: command not found
./clamavupdate.php: line 17: [logupdater]: command not found
./clamavupdate.php: line 18: [application_name]: command not found
./clamavupdate.php: line 19: syntax error near unexpected token `('
./clamavupdate.php: line 19: `$conf['compile_dir'] = getcwd();'
[root@server1 ~]#

Please help.

Thanks alot.
Reply With Quote