My money's on the config file. Perhaps a permissions problem?
If so, the script could probably benefit from better error detection. If an IP address is required (as it seems to be) the code should validate that it has an IP address early on, and give a more informative error message.
Some tools for chasing down the problem:
As others have noted, I'm speculating wildly because we can't see your code. On the other hand, if your script is large it may not be useful to see all of it.
If you can try reducing your script to the minimum amount which reproduces the problem that would be useful. You'll also often find that doing that helps you find the problem yourself.
Good luck. | [reply] [d/l] [select] |
$cfile = $ENV{'OCONFFILE'};
open( CFILE, $cfile ) || return "FAIL0:No such file: $cfile!\n";
The code given above is the actual part tht gets the config file path & opens the file for read.
As u said the code is huge for me to post it. Anyway i got around the issue, it was with setting the global variable OCONFFILE to correct path.
jbert, thanks once again
| [reply] |
It might be caused by the phase of the moon... we don't know without seeing some code.
-David | [reply] |