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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Passing a context file from command line

Hello everyone,

 

I found a lot of threads about this problem but none helps me.

 

I try to execute a job from the command line by passing the following command (I need to execute job with two different contexts):

myJob.bat --context=myContext

 

The problem is such as myContext needs to be in a specific folder of the job folder. However, I need my context in an other place. So I should pass the path of the context file in the context parameter like:

myJob.bat --context=path/myContext

But it seems to not work, I got an error message 'Could not find the context myContext'.

I tried with simple cotes and doubles cotes but it didn't change anything.

 

How to pass this kind of parameter, a context file with a specific path?

Or, how to change the default folder where the context files need to be there?

 

Here is the tree view to help understanding the need:

  • jobFolder
    • myJob (the .bat file)
    • project (folder generated by Talend when building the job)
      • job
        • contexts
          • Context files that I can pass (so I should copy my context files there but I need them in an other folder)
  • customizedContexts
    • myContext (the context file that I want to pass, but I don't know how to pass the path to this file)

 

Thank you for your help,

 

Kevin

0 Replies