From: Jerry S. <je...@sa...> - 2003-01-28 18:57:39
|
>I have been working with the cron script for running htdig on a >Solaris 8 server. I have been looking through the archives of this >newsgroup to find anything, but haven't found the answer to my >problem as of yet. Like some of the other people, the rundig script >works fine when run manually, but if run from cron, it completes >immediately and doesn't to the "dig" or the "merge". Typically if a >script runs manually, but not through a cron it means that there is >an environment setting that is missed, but all of the paths are >explicitly stated in the cron script. I had a problem with this on Mac OS X where the problem was apparently that sendmail is turned off by default. Cron attempts to route any output through sendmail, and htdig can create a lot of output. I still don't know exactly what was happening. There were no errors reported that I could see; the htdig process simply disappeared after about five minutes--but of course it ran fine on the command line, where the output wasn't being routed through the broken sendmail. My solution was to turn sendmail on. Once I did this, I had no more problems using rundig in cron. Jerry -- je...@sa... http://www.sandiego.edu/~jerry/ Serra 188B/x8773 -- "The major difference between a thing that might go wrong and a thing that cannot possibly go wrong is that when a thing that cannot possibly go wrong goes wrong it usually turns out to be impossible to get at and repair."--Douglas Adams (Mostly Harmless) |