Community Forums
Results 1 to 3 of 3

Thread: We are having InstallAnywhere hang problem when running shell script

  1. #1
    Join Date
    Aug 2013
    Posts
    2

    We are having InstallAnywhere hang problem when running shell script

    Hi experts,

    we are using InstallAnywhere2009 Enterprise, and we are having the hang problem, it blocked us for two weeks.

    we tried "Execute Command", "Execute Script/Batch file" and "Execute Target File" actions, but all of them hanged, and never go to next step even the shell script seems was executed successfully.
    Name:  Capture.PNG
Views: 1040
Size:  94.5 KB

    Execute Command: sh -c "$ETL_FILES_DIR$$/$shell$/$install_ips_bods.sh"
    Execute Script/Batch file: sh -c "$ETL_FILES_DIR$$/$shell$/$install_ips_bods.sh"
    Execute Target File: $USER_INSTALL_DIR$$/$install_ips_bods.sh

    content of install_ips_bods.sh is as below.
    #!/bin/sh

    # Install IPS
    /opt/HP_Universal_SLAM_BO_ETL_CGL/etl_files/IPS_Installer/DATA_UNITS/SBOP_IPS_lnx/setup.sh -r /opt/HP_Universal_SLAM_BO_ETL_CGL/etl_files/IPS_Installer/ips.ini InstallDir=/opt/HP_Universal_SL
    AM_BO_ETL_CGL

    # Install BODS
    /opt/HP_Universal_SLAM_BO_ETL_CGL/etl_files/BODS_Installer/setup.sh -r /opt/HP_Universal_SLAM_BO_ETL_CGL/etl_files/BODS_Installer/bods.ini InstallDir=/opt/HP_Universal_SLAM_BO_ETL_CGL


    can someone help?

  2. #2
    Join Date
    Mar 2006
    Location
    Paris, France
    Posts
    2,147

    Question

    Does the script really takes 1 hour to run?!?
    Vlad

  3. #3
    Join Date
    Aug 2013
    Posts
    2

    I resolved the hang problem by appending "2>/dev/null 1>/dev/null" into the command

    Hi Vlad,

    I resolved the hang problem, here is what I did in install_ips_bods.sh.

    ./setup.sh -r $USER_INSTALL_DIR$/etl_files/IPS_Installer/ips.ini InstallDir=$USER_INSTALL_DIR$ 2>/dev/null 1>/dev/null
    ./setup.sh -r $USER_INSTALL_DIR$/etl_files/BODS_Installer/bods.ini InstallDir=$USER_INSTALL_DIR$ 2>/dev/null 1>/dev/null

    I just appended "2>/dev/null 1>/dev/null" to "setup.sh....".


    Anyway, thanks for your reply.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •