running a ksh script on an HP Box

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf running a ksh script on an HP Box

  • Creator
    Topic
  • #49038
    Donna Bailey
    Participant

      Has anyone ran into this type of error when running a ksh script on an HP Box?

      /usr/lib/dld.sl: Can’t open shared library: /opt/java1.3/jre/lib/PA_RISC/libzip.sl

      /usr/lib/dld.sl: No such file or directory

      /hci/quovadx/qdx5.2/integrator/scripts/ge_chg_phys_group_tablebuild.ksh[11]: 144

      11 Abort(coredump)

      /hci/quovadx/qdx5.2/integrator/scripts/ge_chg_phys_group_tablebuild.ksh[15]: set

      root: not found

      /hci/quovadx/qdx5.2/integrator/scripts/ge_chg_phys_group_tablebuild.ksh[16]: hci

      cmd: not found

      We can run manually from command prompt without any problem.  Any suggestions would be greatly appreciated!

      Donna

      Donna Bailey
      Tele: 315-729-3805
      dbailey@microstar.health
      Micro Star Inc.

    Viewing 2 reply threads
    • Author
      Replies
      • #60530
        Robert Kersemakers
        Participant

          Hi Donna,

          It looks like your variables aren’t set correctly: setroot and hcicmd can’t be found.

          Is this a cron job you’re running? We always run our cron-jobs under the hci user by using the ‘su’ command. You should get something like this:

          Code:

          0 4 * * * su hci -c

          This way all variables are set correctly.

          (I don’t have access to our own cronjobs, so I’m not sure if this is a valid example.)

          Hope this helps,

          Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

        • #60531
          Robert Gordon
          Participant

            The first solution would be to run a shell script under user hci.  If the settings for the environment ar not correct your script will bomb.

            The second solution means editting the script and making sure the directory is sourced by using PATH=$PATH;path_to_library;

          • #60532
            LeeAnne Kardas
            Participant

              This is what I put in my unix script that is run on the cron job within HP/UX environment.

              # start setsite srhscltb

              export PATH=$PATH:/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:.:/usr/local/bin:/usr/local/scripts:/hci/bin

              umask 002

              export FPATH=/hci/kshlib

              # site srhscltb

              . $FPATH/setroot

              . $FPATH/setsite srhscltb

              HCIROOT=”/hci/root3.8.0P”

              # site srhscltb

              eval `/hci/bin/hcisetenv -root ksh $HCIROOT srhscltb`

              # end setsite

          Viewing 2 reply threads
          • The forum ‘Cloverleaf’ is closed to new topics and replies.