About this list Date view Thread view Subject view Author view Attachment view

From: Sam Vilain (sam_at_vilain.net)
Date: Tue 15 Jul 2003 - 12:15:24 BST


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, sam_at_vilain.net

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


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 15 Jul 2003 - 18:08:03 BST by hypermail 2.1.3