External Command - Unzip command goes in SLEEP state.
book
Article ID: KB0081164
calendar_today
Updated On:
Products
Versions
TIBCO ActiveMatrix BusinessWorks
BW 5.x
Description
unzip command in ExternalCommand activity goes into a sleep state when you have already unzipped the source file/directory and it waits for next action which is of replace.
If you kill that sleeping unzip process your ExternalCommand activity will complete & in output it will show below message.
----------------------------------------------
Archive: SampleProject_mod.zip
replace SampleProject_mod/JDBCTest/.config? [y]es, [n]o, [A]ll, [N]one, [r]ename:
-----------------------------------------------
Environment
All
Resolution
To overcome this behavior please follow below steps:
1. In ExternalCommand "Configuration" tab, 'command to execute' will be "unzip /home/tibco/<filename>.zip -d /home/tibco/test"
2. In Input tab of ExternalCommand, under CmdInput->input, provide "A".
3. Save the project, run it & check the output.
We are passing "A" here to replace all the existing file/directory into the destination folder. This will complete the action & unzip command will not go into sleep state.
Issue/Introduction
While running unzip command on Unix environment using External Command activity, it never returns output. When we check in server, the unzip process is in SLEEP state.
The same command when run from command prompt with same user, file etc. runs fine.