Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
sahithiv
Contributor II
Contributor II

tsystem command giving cmd not found error

Hi

Using Talend Studio in Mac,

I want to retrieve files from google cloud storage, store it in a local folder and process it further to deploy into DW

I want to create a folder within the job which can be applicable to any OS or system that the job runs.

Ultimate goal is to package this job as docker container and run in Google cloud.

I am trying to create a folder using tsystem command before the file gets downloaded so that it can replicate same action when run as a docker image using "cmd /c mkdir test"

But tsystem component is giving me following error:

tSystem_1 Cannot run program "cmd": error=2, No such file or directory

even for command "cmd /c echo hello"

I tried running the same command via Mac Terminal and it works. Can you please help me how can i solve this?

Labels (3)
4 Replies
gjeremy1617088143

Hi @sahithi v​ , I hope this link can help you :

https://community.talend.com/s/article/Using-the-tSystem-component-qr4tU

Send me love and kudos

gjeremy1617088143

you can also read this one

https://help.talend.com/r/dYqIo6FAHqeSljA6FsQPXA/jKbJRM3mpRGOPW9bip8ysQ

it show you how to detect the operating system at runtime and so after you can choose window command or unix command in your tSystem component in function of the operating system

sahithiv
Contributor II
Contributor II
Author

I solved the problem by removing cmd /c and directly issuing the command

gjeremy1617088143

I'm glad you find a solution.