<?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/2335712#M104244</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/2335712#M104244</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/2335712#M104244</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-20T16:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: 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/2335713#M104245</link>
      <description>I believe passing passing --context=myContext might only pass the name of the context env ex. Dev, Prod, ... but cannot externalize the location of a context file.&lt;BR /&gt;&lt;BR /&gt;try using a tFileInputDelimited-&amp;gt; tContextLoad to externalize the context file. See the doc of tContextLoad&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Aug 2018 17:09:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Passing-a-context-file-from-command-line/m-p/2335713#M104245</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-20T17:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: 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/2335714#M104246</link>
      <description>&lt;P&gt;I created two tFileInputDelimited-&amp;gt; tContextLoad units in my job, that correspond to my two contexts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to pass the context that I want to use when I execute the job from the command line? I seen something like --context_parameter but it didn't works for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or do I need to have only one tFileInputDelimited-&amp;gt; tContextLoad unit, and a .properties file that contains my two environments? In this case, how to choose which one environment I want to use when I pass the context form the command line?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 11:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Passing-a-context-file-from-command-line/m-p/2335714#M104246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-21T11:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: 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/2335715#M104247</link>
      <description>&lt;P&gt;Here is the command line help. You can pass the context name using --job-context&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;executeJob&lt;/STRONG&gt; jobName executes |&lt;BR /&gt;| -i (--interpreter) path perl/java interpreter path |&lt;BR /&gt;| -jactc (--job-apply-context-to-children) apply context to children |&lt;BR /&gt;| &lt;STRONG&gt;-jc (--job-context) context name chooses a job context |&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| -jcp (--job-context-param) key=value [key=value ...] provides a job context param |&lt;/STRONG&gt;&lt;BR /&gt;| -jrdd (--job-result-destination-dir) path job execution result |&lt;BR /&gt;| destination dir |&lt;BR /&gt;| -jt (--job-timeout) time (in sec) timeout of execution |&lt;BR /&gt;| -jv (--job-version) version chooses a job version |&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;| &lt;STRONG&gt;executeJobOnServer&lt;/STRONG&gt; jobName executes on server |&lt;BR /&gt;| -es (--execution-server) name execution [virtual] server |&lt;BR /&gt;| name |&lt;BR /&gt;| -jactc (--job-apply-context-to-children) apply context to children |&lt;BR /&gt;| -jall (--job-log4j-level) level log4j level |&lt;BR /&gt;| -jc (&lt;STRONG&gt;--job-context&lt;/STRONG&gt;) context name chooses a job context |&lt;BR /&gt;| -jcp (--job-context-param) key=value [key=value ...] provides a job context param |&lt;BR /&gt;| -jrrd (--job-result-destination-dir) jobResultDestDir job execution result |&lt;BR /&gt;| destination dir |&lt;BR /&gt;| -jsp (--job-statistics-port) port setup the statistics port |&lt;BR /&gt;| -jtp (--job-trace-port) port setup the trace port |&lt;BR /&gt;| -jv (--job-version) version chooses a job version |&lt;BR /&gt;| -pd (--jobserver-password) password jobserver password |&lt;BR /&gt;| -ra (--run-as-user) runas run as user |&lt;BR /&gt;| -un (--jobserver-username) username jobserver username |&lt;BR /&gt;| -useSSL (--use-ssl-option) use ssl Protocol or not&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 13:18:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Passing-a-context-file-from-command-line/m-p/2335715#M104247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-21T13:18:45Z</dc:date>
    </item>
  </channel>
</rss>

