Your skill will accomplish what the force of many cannot |
|
PerlMonks |
RE: RE: Re: Checking permissions in multiple directoriesby Corion (Patriarch) |
on Jun 04, 2000 at 14:11 UTC ( [id://16282]=note: print w/replies, xml ) | Need Help?? |
File::Find already descends down through all subdirectories, sorry if I didn't mention that. But it really seems to me as if a tool such as rsync or a simpler solution using tar cfz transfer.tgz would do what you want in a much better way, since rsync can keep two directory branches synchronized in all ways without transferring all files and tar works more or less like cp. Please either restate your problem or think about using a readymade tool. The necessary modifications for my above script to tell you if a file is missing on machine B would be in the routine checkpermissions() : Please think again about whether you really want to use Perl for this problem. When all you have is a hammer,
In Section
Seekers of Perl Wisdom
|
|