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
Post a Comment