Five Stars

can we Return value to terminal

Hi ,

i am running the .sh file from build job by  passing parameters.i need to return the the output.

 

its like job.sh --context_param type="something" --context_param value="something" so it need to return value by processing

talend.JPG

 

i had done like this done processing in talend and assign it to global varible and using the fixedflow input pointingg to tbufferoutput .

 

 

I need help will Tbuffer return value to terminal? How can we know if it is returning value.

3 REPLIES
Thirteen Stars TRF
Thirteen Stars

Re: can we Return value to terminal

If you want to return something like a return code, you may just call System.exit(yourValue)

TRF
Five Stars

Re: can we Return value to terminal

Hi,

The return value need to be captured and job will be run in an iterative manner.Cant we return output in other way? since system.exit will bring JVM out.

Thirteen Stars TRF
Thirteen Stars

Re: can we Return value to terminal

system.out.println will print to the standard output. So, you can capture this data flow from the script which launch the job.

TRF