rwilkerson
Registered
I find myself constantly using the locate command on my new Mac (I'm a switcher, but this seemed like a geekier question) frequently and I'd like to set up a cron job to run locate.updatedb so that my database stays reasonably current. It seems, though, that I need to run that under sudo.
Is there any way to run "sudo /usr/libexec/locate.updatedb" as a cron job? Since sudo prompts for a password, I can't figure out a way to do this. I've scanned the man pages looking for a -p (or similar) argument with no luck.
Is this possible?
Thanks.
Is there any way to run "sudo /usr/libexec/locate.updatedb" as a cron job? Since sudo prompts for a password, I can't figure out a way to do this. I've scanned the man pages looking for a -p (or similar) argument with no luck.
Is this possible?
Thanks.