This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Mark, > Yep. I tried that. Everything I tried with ldmadmin kept telling me > 'LDM server running'. I couldn't do anything with it. > > Keep in mind the isRunning() in ldmadmin was hacked by Lou and I to get > the server running again, so any ldmadmin command will probably work now. Was a new version of "perl" recently installed? If so, then this might account for the new behavior of the isRunning() function in the "ldmadmin" script. I modified the isRunning() function in the "ldmadmin" script based on your observations. I would be very interested in its behavior on your system. The new function is attached. Would you be willing to try it? Regards, Steve Emmerson Ticket Details =================== Ticket ID: KCB-737668 Department: Support LDM Priority: Normal Status: On Hold
sub isRunning { my($running) = 0; my($pid) = getPid(); if ($pid != -1) { system("kill -0 $pid > /dev/null 2>&1"); $running = !$?; } if (!$running) { my($cmd_line) = "ldmping -l- -i 0"; if (length($ip_addr)) { $cmd_line .= " $ip_addr"; } system("$cmd_line > /dev/null 2>&1"); $running = !$?; } return $running; }