On Fri, 11 Jul 2003 12:01, Thomas Gebhardt wrote:
> Wouldn't it suffice to scan all files in /usr and its
> subdirectories (on the vservers) looking for file
> attributes and md5sum, "unifying" all the files that
> are identical?

Yes.  Get this script:

  http://www.vilain.net/vserver/unify-dirs

You'll probably also want to unify /lib (to get the C library etc) and
possibly even /bin, /dev, whatever.

You'll need this module (not on CPAN, sorry) to run it:

  http://vilain.net/pm/ReadDir-0.02.tar.gz

The other modules it uses (Digest::SHA1, Pod::Constants, Text::Wrap,
Term::ReadKey) are all on CPAN
-- 
Sam Vilain, [EMAIL PROTECTED]

A problem adequately stated is a problem well on its way to being
solved.
 -- Richard Buckminster Fuller

Reply via email to