The Ultimate Business Machine - Archives List of Categories : Database * Technology * Commentary * Singapore * Travel *
Mon 05 Apr 2004
logGen
Category : Technology/logGen.txt
I read about logGen in MacSurfer on Saturday (which pointed to me to Macosxhints). It's interesting how things turn up just when you need them. This looks like what I need to keep track of the Perl modules. For example, if I install Date::Calc, I will get an output like this after running logGen : logGen -- version 1.0 Copyright 2004 - The Regents of the University of Michigan All Rights Reserved
45 new files: --------------- /Library/Perl/5.8.1/darwin-thread-multi-2level/Bit/ /Library/Perl/5.8.1/darwin-thread-multi-2level/Carp/ /Library/Perl/5.8.1/darwin-thread-multi-2level/Date/ /Library/Perl/5.8.1/darwin-thread-multi-2level/auto/.DS_Store /Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Bit/ /Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Date/ /Library/WebServer/.DS_Store /System/Library/Perl/5.8.1/CPAN/Config.pm /man/ --------------- 2 changed files: --------------- /Library/Logs/PasswordService/ApplePasswordServer.Server.log /System/Library/Perl/5.8.1/darwin-thread-multi-2level/perllocal.pod --------------- 0 deleted files
So this tells me that these are all the new stuff that came in with the Date::Calc installation, including all the modules Date::Calc depended on, and where you can find them. Neat. Even if I had monitored the terminal window like a hawk during the Date::Calc installation, I would never have figured this out. An alternative is to compare the state of the file system using two machines. (Actually I did that and realised I would have needed three machines, with one serving as the baseline.) But this would be too tedious and almost impossible to get right. So logGen is a great tool and I'm sure I can find even more use for it. I can see that the installation process wrote something into perllocal.pod. Perhaps there's a short cut to all this if I know enough about Perl and maybe the answers are all in the pod file. But you learn things any way you can.
Posted at 12:36PM UTC | permalink
|