cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
caoguanling
Level 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.


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?
Labels (1)
0 Kudos
(2) Replies
pv7721
Level 20

Does the script really takes 1 hour to run?!?
0 Kudos
caoguanling
Level 2

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.
0 Kudos