On Jun 15, 2006, at 7:22 AM, 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.

That's precisely what happened. The LWP package installs a script called HEAD that does an HTTP HEAD request. On case-insensitive file systems like HFS+, head and HEAD are the same.

Has anyone encountered this, or can anyone determine if my surmise about one of the perl packages is correct? Thanks.

Yes, many people have had this problem. It's not come up for several years, though, because recent versions of the LWP install script asks if you want to overwrite head and install HEAD when it detects a case- insensitive file system, and the default answer to that question is "no". Here's what the questions look like:

        The lwp-request program will use the name it is invoked with to
        determine what HTTP method to use.  I can set up alias for the most
        common HTTP methods.  These alias are also installed in
        /usr/bin.

        Do you want to install the GET alias? [n]
        Do you want to install the HEAD alias? [n]
        Do you want to install the POST alias? [n]

The moral of the story - *read* the questions, don't just keep bouncing on the 'y' and 'return' keys.

sherm--

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

Reply via email to