On 9/7/04 5:51 PM, "Joe R. Jah" <[EMAIL PROTECTED]> wrote: > On Tue, 7 Sep 2004, Clint Davis wrote: > >> Date: Tue, 07 Sep 2004 15:25:40 -0500 >> From: Clint Davis <[EMAIL PROTECTED]> >> To: [EMAIL PROTECTED], [EMAIL PROTECTED] >> Subject: Re: [htdig] Error: Unable to open/create... >> >> Still having some problems with the crontab... >> >> >> When I execute the following command as root, everything works great. >> $ sh /Library/Tenon/Htdig/bin/rundig-realtree.sh >> >> When the system crontab executes the same command, I get errors: >> htdig: Unable to open/create document database >> '/Library/Tenon/Htdig/db/www.realtree.com/db.docdb.work' >> >> htmerge: Unable to create temporary word file >> '/Library/Tenon/Htdig/db/www.realtree.com/db.wordlist.work.new' >> >> Here's the crontab: >> 0 2 * * * root sh >> /Library/Tenon/Htdig/bin/rundig-realtree.sh >> >> >> >> Here are the contents of the shell script: >> #! /bin/sh > > Add this line to your script: > > unlimit; > > Depending on your platform, you may have to use ulimit instead. Search > the Ardhives for the keyword unlimit for more information. You can also > google unlimit+htdig.
As suggested on Experts-Exchange, I changed the crontab command to the following, and everything is working now. su root -c "/Library/Tenon/Htdig/bin/rundig-realtree.sh" ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ ht://Dig general mailing list: <[EMAIL PROTECTED]> ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html List information (subscribe/unsubscribe, etc.) https://lists.sourceforge.net/lists/listinfo/htdig-general