This article explains how to execute a Linux command containing a pipe with a tSystem component. Potential problems you may encounter and troubleshooting suggestions are also included.
This procedure was written with:
Product version: Talend Open Studio for DI 5.0-r72978 and Talend Open Studio for DI 5.1-r79249
JDK version: Sun JDK build 1.6.0_26-b03
Operating system: Ubuntu 11.10
Pipes are used in Bash scripts. The following command does not work with a tSystem component, although it does work in a Linux terminal.
Use the following release specific workarounds:
Enter the following Java code in the Command field.
Since Talend Studio 5.1, a new feature Use Array Command is provided. This feature allows you to set an array of commands. Below is an example introduces this feature:
No such file or directory
This is because tSystem component cannot handle a pipe directly. To fix this problem, use the suggested workaround or upgrade to version 5.1 or higher.