<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Passing a context file from command line in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Passing-a-context-file-from-command-line/m-p/2312398#M83349</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found a lot of threads about this problem but none helps me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I try to execute a job from the command line by passing the following command (I need to execute job with two different contexts):&lt;/P&gt;
&lt;P&gt;myJob.bat --context=myContext&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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:&lt;/P&gt;
&lt;P&gt;myJob.bat --context=path/myContext&lt;/P&gt;
&lt;P&gt;But it seems to not work, I got an error message 'Could not find the context myContext'.&lt;/P&gt;
&lt;P&gt;I tried with simple cotes and doubles cotes but it didn't change anything.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to pass this kind of parameter, a context file with a specific path?&lt;/P&gt;
&lt;P&gt;Or, how to change the default folder where the context files need to be there?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the tree view to help understanding the need:&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;jobFolder
  &lt;UL&gt;
   &lt;LI&gt;myJob (the .bat file)&lt;/LI&gt;
   &lt;LI&gt;project (folder generated by Talend when building the job)
    &lt;UL&gt;
     &lt;LI&gt;job
      &lt;UL&gt;
       &lt;LI&gt;contexts
        &lt;UL&gt;
         &lt;LI&gt;Context files that I can pass (so I should copy my context files there but I need them in an other folder)&lt;/LI&gt;
        &lt;/UL&gt;&lt;/LI&gt;
      &lt;/UL&gt;&lt;/LI&gt;
    &lt;/UL&gt;&lt;/LI&gt;
  &lt;/UL&gt;&lt;/LI&gt;
 &lt;LI&gt;customizedContexts
  &lt;UL&gt;
   &lt;LI&gt;myContext (the context file that I want to pass, but I don't know how to pass the path to this file)&lt;/LI&gt;
  &lt;/UL&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;</description>
    <pubDate>Mon, 20 Aug 2018 16:43:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-08-20T16:43:16Z</dc:date>
    <item>
      <title>Passing a context file from command line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Passing-a-context-file-from-command-line/m-p/2312398#M83349</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found a lot of threads about this problem but none helps me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I try to execute a job from the command line by passing the following command (I need to execute job with two different contexts):&lt;/P&gt;
&lt;P&gt;myJob.bat --context=myContext&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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:&lt;/P&gt;
&lt;P&gt;myJob.bat --context=path/myContext&lt;/P&gt;
&lt;P&gt;But it seems to not work, I got an error message 'Could not find the context myContext'.&lt;/P&gt;
&lt;P&gt;I tried with simple cotes and doubles cotes but it didn't change anything.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to pass this kind of parameter, a context file with a specific path?&lt;/P&gt;
&lt;P&gt;Or, how to change the default folder where the context files need to be there?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the tree view to help understanding the need:&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;jobFolder
  &lt;UL&gt;
   &lt;LI&gt;myJob (the .bat file)&lt;/LI&gt;
   &lt;LI&gt;project (folder generated by Talend when building the job)
    &lt;UL&gt;
     &lt;LI&gt;job
      &lt;UL&gt;
       &lt;LI&gt;contexts
        &lt;UL&gt;
         &lt;LI&gt;Context files that I can pass (so I should copy my context files there but I need them in an other folder)&lt;/LI&gt;
        &lt;/UL&gt;&lt;/LI&gt;
      &lt;/UL&gt;&lt;/LI&gt;
    &lt;/UL&gt;&lt;/LI&gt;
  &lt;/UL&gt;&lt;/LI&gt;
 &lt;LI&gt;customizedContexts
  &lt;UL&gt;
   &lt;LI&gt;myContext (the context file that I want to pass, but I don't know how to pass the path to this file)&lt;/LI&gt;
  &lt;/UL&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 16:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Passing-a-context-file-from-command-line/m-p/2312398#M83349</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-20T16:43:16Z</dc:date>
    </item>
  </channel>
</rss>

