资源说明:A Perl script using REST to iterate through the objects and datastreams in your repository to check the validity of the content against their checksums. Feel free to mail me any feedback or suggestion !!!
# Author: Riccardo Valzorio - fc-devel@cilea.it # # License: Creative Commons Attribution-ShareAlike 3.0 Unported # # This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License. # To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or send # a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA. # # Version 0.4a - 15/12/2010 Description: A Perl script using REST to iterate through the objects and datastreams in your repository to check the validity of the content against their checksums. Requirements: - Linux --> Because I use only it :-) - Perl5 - Perl Modules ├───▸ LWP (http auth) ├───▸ IO::Socket::SSL (https) └───▸ Config::Simple (config file parser) ------ Perl Modules Installation ------ ~# perl -MCPAN -e shell cpan[1]> install LWP cpan[1]> install IO::Socket::SSL cpan[1]> install Config::Simple --------------------------------------- Usage: 1. Configuration Open file config.example and write in all the parameter to get this script working. Move (or copy) config.example in config.cfg * if you want to rename the file (e. config.myfedora), remember to check the inclusion * * in fedora-checksum.pl [Config::Simple->import_from("config.cfg",$Config);] * 2. Run! ~# chmod +x fedora-checksum.pl ~# ./fedora-checksum.pl - or - ~# perl fedora-checksum.pl 3. Crontab Add the script in Cron for a periodical check or run manually ... ----------- Crontab Installation ----------- crontab -e [add following line to check every hour...] 00 * * * * /where/is/it/fedora-checksum.pl > /dev/null -------------------------------------------- Contacts: * fc-devel@cilea.it
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。