Can we call context variables in tSystem?

Nine Stars

Can we call context variables in tSystem?

Hi Community,

I had a query,

Can we call context variables in tSystem component.

And we are executing a unix command then can we call the same through context variables.

 

Pls help.

Thanks,

Ankit

Fifteen Stars TRF
Fifteen Stars

Re: Can we call context variables in tSystem?

For short, yes you can.
Did you encounter any issue with that?
Give some details in this case.

TRF
Nine Stars

Re: Can we call context variables in tSystem?

Hi @TRF ,

Hope you are doing good!!!

i was trying to execute a command in tsystem which would trigger Tableau report refresh,but when i embed the command in tsystem, the job gets succeeded but report is not refreshed.

Example Command -> tabcmd context.server context.folder -u context.username -p context.password

Note -> this is not the exact command.

Could you pls help me on this and how exactly unix commands must be executed in tsystem. Should i follow some standards also can i use tSSH instead of tsystem in this scenario.

 

Thanks,

Ankit

Nine Stars

Re: Can we call context variables in tSystem?

Error : Tabcmd was run from a script or IDE but no password was provided. A password must be provided as an argument to tabcmd in order to log in.

Fifteen Stars TRF
Fifteen Stars

Re: Can we call context variables in tSystem?

So tSystem Command field should be completed with the following:
context.Tabcmd + " " + context.Parameters
where:
- Tabcmd context variable contains full your script file pathname
- Parameters context variable contains... what you need to pass to the script (should be constructed dynamically by the job)

TRF
Fifteen Stars TRF
Fifteen Stars

Re: Can we call context variables in tSystem?

@ankit7359, does this help?

If so, thank's to mark your case as solved.


TRF

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Talend Studio Improvements for API Services

Taken a look at the Talend Studio improvements for API Services

Watch Now

Data Integration Success Stories

Take a look at some Data Integration success stories

Read