Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
ankit7359
Creator II
Creator II

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

Labels (2)
5 Replies
TRF
Champion II
Champion II

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

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

ankit7359
Creator II
Creator II
Author

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.

TRF
Champion II
Champion II

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
Champion II
Champion II

@ankit7359, does this help?

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