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: 
Frederic2
Contributor
Contributor

tSystem always executes successfully

Hi all,

 

I'm trying to design a job which executes a simple command using tSystem. I've tested running this local without any issues but when I run it from Talend Cloud, the job always returns success, even when I specifically execute a bogus command.

 

tSystem_1 - The command has been executed successfully.

Info2020-04-08 15:55:27

tSystem_1 - Command to execute: '/bin/bash -c 7'.

 

Any idea what could be going on?

 

Thanks

Labels (4)
1 Solution

Accepted Solutions
akumar2301
Specialist II
Specialist II

Try to use tSystem_x_error_output ( not exact name) global variable to check result of tsystem and work accordingly

View solution in original post

4 Replies
manodwhb
Champion II
Champion II

When you tried to run tsystem component that it will execute on virtual server of Talend cloud. Which could be aws server.
Frederic2
Contributor
Contributor
Author

I'm not exactly following what you're saying but I'm deploying the job to Talend Cloud and executing the job on a remote engine installed on an EC2 instance.

 

The job runs fine but the actual command somehow reports success even when it's a completely invalid command.

 

Has anyone else seen this?

 

 

akumar2301
Specialist II
Specialist II

Try to use tSystem_x_error_output ( not exact name) global variable to check result of tsystem and work accordingly
Frederic2
Contributor
Contributor
Author

I ended up having to use a tDie with a Runif checking the output ((Integer)globalMap.get("tSystem_1_EXIT_VALUE")) != 0

 

Thanks!