<?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 Run the Talend job(Shell script)with context from another Shell Script in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Run-the-Talend-job-Shell-script-with-context-from-another-Shell/m-p/2213746#M10887</link>
    <description>Hi Guys,
&lt;BR /&gt; I have created a Job from Talend and exported the job as a Shell Script. I am am trying to run the Script from another parent shell script, I have given the paths for the jars and library files that were reqiured by the talend job. The Job uses context which is set in a property file. when i run the job from the main sh file it throwing the error like 
&lt;BR /&gt; Exception in component tFileInputDelimited_1
&lt;BR /&gt;java.io.FileNotFoundException: nullnull (No such file or directory)
&lt;BR /&gt; at java.io.FileInputStream.open(Native Method)
&lt;BR /&gt; at java.io.FileInputStream.&amp;lt;init&amp;gt;(FileInputStream.java:106)
&lt;BR /&gt; at java.io.FileInputStream.&amp;lt;init&amp;gt;(FileInputStream.java:66)
&lt;BR /&gt; at org.talend.fileprocess.TOSDelimitedReader.&amp;lt;init&amp;gt;(TOSDelimitedReader.java:76)
&lt;BR /&gt; at org.talend.fileprocess.FileInputDelimited.&amp;lt;init&amp;gt;(FileInputDelimited.java:83)
&lt;BR /&gt; at sample.wba_country_master_tran_0_1.WBA_COUNTRY_MASTER_TRAN.tFileInputDelimited_1Process(WBA_COUNTRY_MASTER_TRAN.java:516)
&lt;BR /&gt; at sample.wba_country_master_tran_0_1.WBA_COUNTRY_MASTER_TRAN.runJobInTOS(WBA_COUNTRY_MASTER_TRAN.java:833)
&lt;BR /&gt; at sample.wba_country_master_tran_0_1.WBA_COUNTRY_MASTER_TRAN.main(WBA_COUNTRY_MASTER_TRAN.java:743)
&lt;BR /&gt;
&lt;BR /&gt;the error clearly states that it couldnt get the context properties from the property file(the context is for giving the input for a delimited input file dynamically) which means that it couldnt access the property file of the job Please make clear where to specify the path for the context property file, should i need to change the path in the underlying Java code or is there any way it can be mentioned in the Talend job sh file itself
&lt;BR /&gt;I am pasting the contents of the sh file 
&lt;BR /&gt;java -Xms256M -Xmx1024M -cp ${JOB_SCRIPTS_DIR}/lib/javacsv.jar:${JOB_SCRIPTS_DIR}/lib/ojdbc5.jar:${JOB_SCRIPTS_DIR}/lib/talend_file_enhanced_20070724.jar:${JOB_SCRIPTS_DIR}/lib/systemRoutines.jar:${JOB_SCRIPTS_DIR}/lib/userRoutines.jar::.:${JOB_SCRIPTS_DIR}/WBA_COUNTRY_MASTER_TRAN/wba_country_master_tran_0_1.jar:${JOB_SCRIPTS_DIR}/lib: sample.wba_country_master_tran_0_1.WBA_COUNTRY_MASTER_TRAN --context=Default
&lt;BR /&gt;Please reply ASAP....
&lt;BR /&gt;Thanks in Anticipation 
&lt;BR /&gt;Selva.</description>
    <pubDate>Sat, 16 Nov 2024 14:06:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T14:06:40Z</dc:date>
    <item>
      <title>Run the Talend job(Shell script)with context from another Shell Script</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-the-Talend-job-Shell-script-with-context-from-another-Shell/m-p/2213746#M10887</link>
      <description>Hi Guys,
&lt;BR /&gt; I have created a Job from Talend and exported the job as a Shell Script. I am am trying to run the Script from another parent shell script, I have given the paths for the jars and library files that were reqiured by the talend job. The Job uses context which is set in a property file. when i run the job from the main sh file it throwing the error like 
&lt;BR /&gt; Exception in component tFileInputDelimited_1
&lt;BR /&gt;java.io.FileNotFoundException: nullnull (No such file or directory)
&lt;BR /&gt; at java.io.FileInputStream.open(Native Method)
&lt;BR /&gt; at java.io.FileInputStream.&amp;lt;init&amp;gt;(FileInputStream.java:106)
&lt;BR /&gt; at java.io.FileInputStream.&amp;lt;init&amp;gt;(FileInputStream.java:66)
&lt;BR /&gt; at org.talend.fileprocess.TOSDelimitedReader.&amp;lt;init&amp;gt;(TOSDelimitedReader.java:76)
&lt;BR /&gt; at org.talend.fileprocess.FileInputDelimited.&amp;lt;init&amp;gt;(FileInputDelimited.java:83)
&lt;BR /&gt; at sample.wba_country_master_tran_0_1.WBA_COUNTRY_MASTER_TRAN.tFileInputDelimited_1Process(WBA_COUNTRY_MASTER_TRAN.java:516)
&lt;BR /&gt; at sample.wba_country_master_tran_0_1.WBA_COUNTRY_MASTER_TRAN.runJobInTOS(WBA_COUNTRY_MASTER_TRAN.java:833)
&lt;BR /&gt; at sample.wba_country_master_tran_0_1.WBA_COUNTRY_MASTER_TRAN.main(WBA_COUNTRY_MASTER_TRAN.java:743)
&lt;BR /&gt;
&lt;BR /&gt;the error clearly states that it couldnt get the context properties from the property file(the context is for giving the input for a delimited input file dynamically) which means that it couldnt access the property file of the job Please make clear where to specify the path for the context property file, should i need to change the path in the underlying Java code or is there any way it can be mentioned in the Talend job sh file itself
&lt;BR /&gt;I am pasting the contents of the sh file 
&lt;BR /&gt;java -Xms256M -Xmx1024M -cp ${JOB_SCRIPTS_DIR}/lib/javacsv.jar:${JOB_SCRIPTS_DIR}/lib/ojdbc5.jar:${JOB_SCRIPTS_DIR}/lib/talend_file_enhanced_20070724.jar:${JOB_SCRIPTS_DIR}/lib/systemRoutines.jar:${JOB_SCRIPTS_DIR}/lib/userRoutines.jar::.:${JOB_SCRIPTS_DIR}/WBA_COUNTRY_MASTER_TRAN/wba_country_master_tran_0_1.jar:${JOB_SCRIPTS_DIR}/lib: sample.wba_country_master_tran_0_1.WBA_COUNTRY_MASTER_TRAN --context=Default
&lt;BR /&gt;Please reply ASAP....
&lt;BR /&gt;Thanks in Anticipation 
&lt;BR /&gt;Selva.</description>
      <pubDate>Sat, 16 Nov 2024 14:06:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-the-Talend-job-Shell-script-with-context-from-another-Shell/m-p/2213746#M10887</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Run the Talend job(Shell script)with context from another Shell Script</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-the-Talend-job-Shell-script-with-context-from-another-Shell/m-p/2213747#M10888</link>
      <description>Hi Selva,&lt;BR /&gt;you should set the runtime directory to ${JOB_SCRIPTS_DIR}. For example ad a cd ${JOB_SCRIPTS_DIR} in your sh. This should help the ClassLoader to find the property files.&lt;BR /&gt;Bye&lt;BR /&gt;Volker</description>
      <pubDate>Sun, 04 Jan 2009 22:29:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-the-Talend-job-Shell-script-with-context-from-another-Shell/m-p/2213747#M10888</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-04T22:29:13Z</dc:date>
    </item>
  </channel>
</rss>

