How to use the "zip" command with wildcards in the External Command activity on Linux.

How to use the "zip" command with wildcards in the External Command activity on Linux.

book

Article ID: KB0086095

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Description:
New files are created at run time and users need to zip all files. The "zip" command with wildcard works in a shell, but not in the "External Command" activity using TIBCO Designer.


Resolution

1). To zip a folder, in order to include its subfolder, use "zip -r Text.zip FolderName" .
2). To zip all files/subfolders in a particular folder, use "zip -r /tmp/test.zip /tmp/test/ -i *.*".
3). The "-r" parameter is needed to "zip" with wildcards.
4).  If you do not give the "-i" parameter, such as when using "zip -r /tmp/test.zip /tmp/test/*.* ", you will see "zip -r /tmp/test.zip . -i /tmp/test/*.* " in the "Output" tab of the "External Command". The command will fail.

Issue/Introduction

How to use the "zip" command with wildcards in the External Command activity on Linux.

Additional Information