One Star

TSystem how to enter multiple commands in one component?

I want to enter multiple commands in one tsystem component? Any suggestions on how I can go about doing that?
In the picture if I have any more command after the zip command like a touch command, it simply does not execute?
3 REPLIES
One Star

Re: TSystem how to enter multiple commands in one component?

With Tsystem how are you connecting to the unix server? There was no field to provide the host , port and user info. I had to use tssh component. Can you let me know how you did this?
One Star

Re: TSystem how to enter multiple commands in one component?

The commands run on Talend Box. Unless you are connecting to any other box you dont need that information.
Anybody else have any suggestions how I can run multiple commands in tsystem? I want to do something like the following like how we can do in the command task of informatica.
One tsystem component
1) touch file1.txt
2) zip fileabc fileabc.zip
3) copy file1 /u01/test/ /u01/test2
Community Manager

Re: TSystem how to enter multiple commands in one component?

Hi
Yes, you can execute multiple system commands at one time using this format: (use single command)
"cmd / c command1 & command2 & command3 & ..."
For example:
"cmd / c echo Hello & echo World"
----------------------------------------------------------
Talend | Data Agility for Modern Business