how to Execute multiple shell commands in tsystem component talend

user3797729

My Talend open Studio For Data Integreation version 6.0 And Platform Cent OS 6.5

I was trying to execute multiple shell commands in tsystem component

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

I was getting error

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

In windows Enironment I tried and it was fine.

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

Could you guid me in this.

54l3d

For linux env you can use this:

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

or choose the array command in the tSystem component, and put each element of the previous array in a separated line. If this not work, you can use tForEach before tSystem to iterate over many commands that are stored in the tForEach component:

tForEach-----(iterate)-------tSystem---..

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

How to execute mongo commands through shell scripts?

From Dev

How to execute remote pysftp commands under a specific shell

From Dev

How to execute the vim commands through shell script

From Dev

How to run a pkill when invoking a shell to execute a string of commands?

From Dev

How to execute shell commands from Ruby in their own shell?

From Dev

How can we open minicom from current terminal and pass multiple commands to execute and exit to 1st terminal using shell script

From Dev

How to execute multiple CLI commands in a python script?

From Dev

A better way to execute multiple MySQL commands using shell script

From Dev

execute multiple commands on console through unix shell

From Dev

How to execute commands in docker container as part of bash shell script

From Dev

Clojure: how to execute shell commands with piping?

From Dev

How to open adb shell and execute commands inside shell using python

From Dev

How to execute external shell commands from laravel controller?

From Dev

How to execute shell commands as root in Java

From Dev

How to execute multiple commands remotely on few servers?

From Dev

How to execute remote pysftp commands under a specific shell

From Dev

How do I execute shell commands through eggPlant on Windows?

From Dev

How to run a pkill when invoking a shell to execute a string of commands?

From Dev

How to execute shell commands from Ruby in their own shell?

From Dev

Execute shell commands in Python

From Dev

How to execute shell commands in a loop from within a bash script?

From Dev

How to execute multiple commands in Bash, some in the background

From Dev

How to execute multiple CLI commands in a python script?

From Dev

How to execute commands in gnuplot using shell script?

From Dev

how to execute compound commands in shell script?

From Dev

How to open adb shell and execute commands inside shell using python

From Dev

C++ execute multiple commands with timer in shell

From Dev

How to execute the multiple commands with && operator in new lines(not all in single line) :shell script

From Dev

How to execute library calls commands from shell?

Related Related

  1. 1

    How to execute mongo commands through shell scripts?

  2. 2

    How to execute remote pysftp commands under a specific shell

  3. 3

    How to execute the vim commands through shell script

  4. 4

    How to run a pkill when invoking a shell to execute a string of commands?

  5. 5

    How to execute shell commands from Ruby in their own shell?

  6. 6

    How can we open minicom from current terminal and pass multiple commands to execute and exit to 1st terminal using shell script

  7. 7

    How to execute multiple CLI commands in a python script?

  8. 8

    A better way to execute multiple MySQL commands using shell script

  9. 9

    execute multiple commands on console through unix shell

  10. 10

    How to execute commands in docker container as part of bash shell script

  11. 11

    Clojure: how to execute shell commands with piping?

  12. 12

    How to open adb shell and execute commands inside shell using python

  13. 13

    How to execute external shell commands from laravel controller?

  14. 14

    How to execute shell commands as root in Java

  15. 15

    How to execute multiple commands remotely on few servers?

  16. 16

    How to execute remote pysftp commands under a specific shell

  17. 17

    How do I execute shell commands through eggPlant on Windows?

  18. 18

    How to run a pkill when invoking a shell to execute a string of commands?

  19. 19

    How to execute shell commands from Ruby in their own shell?

  20. 20

    Execute shell commands in Python

  21. 21

    How to execute shell commands in a loop from within a bash script?

  22. 22

    How to execute multiple commands in Bash, some in the background

  23. 23

    How to execute multiple CLI commands in a python script?

  24. 24

    How to execute commands in gnuplot using shell script?

  25. 25

    how to execute compound commands in shell script?

  26. 26

    How to open adb shell and execute commands inside shell using python

  27. 27

    C++ execute multiple commands with timer in shell

  28. 28

    How to execute the multiple commands with && operator in new lines(not all in single line) :shell script

  29. 29

    How to execute library calls commands from shell?

HotTag

Archive