centos6 - how to Execute multiple shell commands in tsystem component talend -


my talend open studio data integreation version 6.0 , platform cent os 6.5

i trying execute multiple shell commands in tsystem component

"cp -f -v dir1 dir2 ; cp -f -v dir3 dir4"

i getting error

cp: cannot stat `;': no such file or directory

in windows enironment tried , fine.

"cmd /c xcopy "c:/folder1" "d:/folder2" /y /f /i & xcopy "c:/folder3" "d:/folder4" /y /f /i"

could guid me in this.

for linux env can use this:

new string[] {"/bin/bash","-c","cp -f -v dir1 dir2 ","cp -f -v dir3 dir4"} 

or choose array command in tsystem component, , put each element of previous array in separated line. if not work, can use tforeach before tsystem iterate on many commands stored in tforeach component:

tforeach-----(iterate)-------tsystem---.. 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -