NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hi Chris, > I would like to post an amendment. Please see the amendment (denoted by the > preceding >>) below. > > > ldmadmin isrunning question: > > > So I run the command `ldmadmin isrunning ; echo $?` but it returns 0 when > I know the LDM is in fact running because a notifyme command returns the > output from a file I inserted a few minutes prior. Shouldn't this return 1 > or is there a different way to > return to output from this command? > > >> I read up on expected output from `ldmadmin isrunning` and I saw that it > is supposed to return 0 for when the LDM is running and 1 when it is off. Instead of echoing the exit status, use the "ldmadmin isrunning" command this way: ldmadmin isrunning && echo yes or ldmadmin isrunning || echo no or if ldmadmin isrunning; then ... else ... fi > However, there appears to still be an issue either with how I am executing > this or the script itself. I stop the >> LDM and it still returns 0 with > the command `ldmadmin isrunning ; echo $?`. So it seems to return 0 whether > it the LDM is running or it is stopped. The LDM can take a little while to stop. Did the "stop" and "isrunning" commands execute concurrently? Regards, Steve Emmerson Ticket Details =================== Ticket ID: WNK-727045 Department: Support LDM Priority: Normal Status: Closed =================== NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.