On Jun 15, 2006, at 7:31 AM, Andy Holyer wrote:

On 15 Jun 2006, at 12:22, Dennis Putnam wrote:

I'm not exactly sure this is what happened but I can't think of anything else. After installing several packages from CPAN, my daily log maintenance began failing. After some investigation I found that '/etc/periodic/daily/500.daily' was getting an error from the '/usr/bin/head' command. When I ran 'head' manually the command was not the normal one. It appears that one of the perl packages replaced the normal 'head' command that works on files, with one that works on URLs. Has anyone encountered this, or can anyone determine if my surmise about one of the perl packages is correct? Thanks.

This is a common gotcha on Os X.

No, it *was* a common gotcha, several years ago.

In the Perl distribution there is a script called "HEAD" which indeed does fetch the header of an HTML file from the web. This clashes with the standard Unix "head" command.

It's in the LWP module, not the core Perl distribution.

There is a standard workaround

Yes, it's called reading the instructions and paying attention. The current default behavior for LWP when installing on a case- insensitive is to *not* install the HEAD alias for lwp-request. That's been the default for quite a long time now - a couple of years at least. You have to specifically override the default for this to happen.

sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

Reply via email to