I don't recall those questions at all, however it is not at all
obvious that 'HEAD' is going to replace 'head'. I'm not sure I
understand the earlier comment about case insensitive filesystems.
Certainly, OS X is not case insensitive at the CLI level, although
'Finder' is. However, PERL is running at the CLI level so I don't see
why that should be a problem.
Oh, well. Lesson learned, albeit too late.
P.S. If 'HEAD' is an alias, where is the real file?
On Jun 15, 2006, at 9:41 AM, Sherm Pendley wrote:
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
Dennis Putnam
Sr. IT Systems Administrator
AIM Systems, Inc.
11675 Rainwater Dr., Suite 200
Alpharetta, GA 30004
Phone: 678-240-4112
Main Phone: 678-297-0700
FAX: 678-297-2666 or 770-576-1000
The information contained in this e-mail and any attachments is
strictly confidential. If you are not the intended recipient, any
use, dissemination, distribution, or duplication of any part of this
e-mail or any attachment is prohibited. If you are not the intended
recipient, please notify the sender by return e-mail and delete all
copies, including the attachments.