Can you set a default for the Setroot cmd?

Clovertech Forums Read Only Archives Cloverleaf General Can you set a default for the Setroot cmd?

  • Creator
    Topic
  • #52788
    Mike Delahunt
    Participant

      We currently have Cloverleaf version 5.7 (Production) and version 5.8 (Upgrade) loaded on our test box (linux).  When I use the setroot command it automatically defaults to “/hci/cis5.8/integrator”, I was just wondering if there was a way to change the setroot command to default to “/hci/qdx5.7/integrator”?  Thanks in advance….Mike

    Viewing 0 reply threads
    • Author
      Replies
      • #75478
        Bob Richardson
        Participant

          Greetings,

          We are AIX6.1 TL6 SP5 and for all of our Integrator releases we have at times run dual roots.  Currently we are doing 5.7R2 and 5.8R4.

          The key system file is /etc/environment which is updated by the installation software from Lawson Healthvision (Cloverleaf) with the following key lines: (values for 5.7 shown – we keep the 5.8 version as a backup when we will upgrade to 5.8 release as only version)

          # begin HCIenv 5.7

          FPATH=/quovadx/qdx5.7/integrator/kshlib

          CL_INSTALL_DIR=/quovadx/qdx5.7

          # end HCIenv 5.7

          At login this is referenced to load the environment variables for the specified root.   I am not sure if the Linux OS has a similar file – suspect they do.

          Also: to navigate between the two roots we have set up an alias in our user file /home/hci/.profile.local.end to set the alternate root’s values.

          For us alias = go57 (or go58) that looks like the following:

          Note: ROOT_LIST is for us and not required here – used in some function calls that we wrote:

          alias go57=’export FPATH=/quovadx/qdx5.7/integrator/kshlib; export ROOT_LIST=”/quovadx/qdx5.7/integrator”; export CL_INSTALL_DIR=/quovadx/qdx5.7; setroot /quovadx/qdx5.7/integrator; showroot; goroot’

          alias go58=’export FPATH=/healthvision/cis5.8/integrator/kshlib;export CL_INSTALL_DIR=/healthvision/cis5.8; setroot /healthvision/cis5.8/integrator helloworld; cd $HCISITEDIR; showroot’

          In the /home/hci/.profile you add the following (may already be in place) as the last command: (loads your aliases and functions as defined in the “local” file)

          if [ -r .profile.local.end ] ; then . .profile.local.end ; fi

          I hope this helps you out.

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