Search code examples
amazon-s3talend

talend tsystem multiline commands


I have command to move files between s3 folders. I am getting bucket name from context variable. placed the command in array line

"aws s3 mv s3://"+context.bucket+"/Egress/test1/abc/xyz.dat s3://"+context.bucket+"/Egress/test1/abc/archive/archive_xyz.dat"

The command fetches the bucket name from context variable, but shows no file or direcrtory error=2. I think it is due to (") at begin and end. Is there any way to solve.

please help


Solution

  • You probably want to use an array command. Using /bin/bash or cmd

    then your command.

    enter image description here