|
|
This "hint" is ludicrous
I would caution others against following this hint's advice.
Firstly, the author gives inaccurate information: the locate database is updated (as Rob G. thought) once per week via the weekly periodic script. By default, it is scheduled to run at 4:30 a.m. on Saturday. Therefore, it should not interfere with one's work or be very noticeable to a user. Secondly, it's very inconsiderate and dangerous to go around indiscriminately nuking system-level process in the midst of operation. If anything, one could pause the task (with a -STOP command and resume it at a more convenient time.
Thirdly, the author shows bad scripting style by invoking perl within a Bourne shell script. The script should be written entirely within perl or else the following Bourne one-liner should suffice:
This "hint" is ludicrous
Pardon my ignorance, but why is it bad form to call perl from within a shell script? I've never heard of this being discouraged before.
This "hint" is ludicrous
Because Perl is *huge*. It's like writing a shell script to manipulate the data in a file, and using AppleScript (osascript) to pull in Microsoft Excel to do the work halfway through.
This "hint" is ludicrous
Yep. It's always interesting to learn new coding viewpoints. I'm just glad to hear that your objection wasn't based on a technical problem since I've seen it done before and didn't want something biting us at a later date.
This "hint" is ludicrous
Thanks for the constructive criticism (well, at least inflammatory criticism). I'm the author of the hint, and you might have noticed my disclaimers about how there was probably a better way to do this. I think I specifically mentioned that calling perl from a shell pipeline wasn't the greatest way to go about it. I think I also mentioned the danger of killing "find" processes on a multi-user machine. I disclaimed and disclaimed some more. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.10 seconds |
|