[pmwiki-users] New recipe: FilesNotify

christian.ridderstrom at gmail.com christian.ridderstrom at gmail.com
Sun Jan 21 12:59:29 CST 2007


See
 	http://pmwiki.org/wiki/Cookbook/FilesNotify

In practice this script will run once a day and create a listing of the 
files in uploads/. That listing will then be compared to the previously 
generated listing, and if any differences are found those differences are 
emailed.

As a result, you get a kind of monitoring of the uploads/ area that is 
independed of pmwiki. This was necessary for me because I'm using a
separate file manager at http://wiki.lyx.org.

The script keeps the latest ten listings logs (stored in wiki.d/files).

Some caveats:
* The script needs to be able to execute 'diff' and 'find', as I haven't
   bothered recreating their functionality in php.

* It's a beta...

I wrote the script for wiki.lyx.org, but I think it should more or less 
work out of the box for other sites. Although farms might have to take 
special care.

I hope this helps someone else :-)
/Christian

-- 
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr


More information about the pmwiki-users mailing list