Version Identifiable?

Issue #16 resolved
Brian Jerome created an issue

Is is possible to determine the version installed? I'd like to check for updates to the version periodically.

If not, can this be added somehow?

Would it be possible to install the XMLSERVICE through YUM like newer versions of Node?

Comments (4)

  1. Kevin Adler

    You can call XMLVER: QSH CMD'/qsys.lib/qxmlserv.lib/xmlver.pgm')

    Also, a version tag will be returned inside the error report (easily generated by passing no xml):

    call qxmlserv.iplugr512k('*here', '*na', '')
    
    <?xml version='1.0' encoding='ISO-8859-1'?>
    <report>
      <version>XML Toolkit 1.9.2</version>
      ...
    
  2. Brian Jerome reporter

    @kadler Kevin, thanks for the response. I tried the QSH command but was getting /QOpenSys/usr/bin/-sh: QSH: 0403-006 Execute permission denied.

    Do you know how I could integrate a version check into a shell script like bash?

  3. Kevin Adler

    Sure, from bash you can use the /QOpenSys/usr/bin/qsh shell wrapper: qsh -c '/qsys.lib/qxmlserv.lib/xmlver.pgm'

    Just note that it doesn't output a newline. You can add one with an echo if you need: qsh -c '/qsys.lib/qxmlserv.lib/xmlver.pgm; echo'

  4. Log in to comment