<?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 issue with running .sh file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/issue-with-running-sh-file/m-p/2356445#M121971</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a job that runs .sh file but talend shows the complete status though the job still runs. Any idea how to control this so that talend gives the complete status only after .sh execution or all the command completes on .sh file.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 31 May 2018 03:32:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-05-31T03:32:22Z</dc:date>
    <item>
      <title>issue with running .sh file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/issue-with-running-sh-file/m-p/2356445#M121971</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a job that runs .sh file but talend shows the complete status though the job still runs. Any idea how to control this so that talend gives the complete status only after .sh execution or all the command completes on .sh file.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 03:32:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/issue-with-running-sh-file/m-p/2356445#M121971</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-31T03:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: issue with running .sh file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/issue-with-running-sh-file/m-p/2356446#M121972</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Are your job running well when you execute .sh file? What does the complete status look like? Could you please give us some trouble screenshots?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 04:21:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/issue-with-running-sh-file/m-p/2356446#M121972</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-31T04:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: issue with running .sh file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/issue-with-running-sh-file/m-p/2356447#M121973</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using tssh component where it calls .sh file from unix. After i run this job in talend. I see connected, completed and disconnected message on talend console and then I go check on the log that sh file generates, i see these files generated even though status on the talend shows completed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is part of the shell script. This script basically generates log files and has operations like creating tables, inserting data to table and so on. And all these operations complete successfully after talend complete message. I want talend to show me complete after finishing all these operations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;./file.properties&lt;/P&gt;&lt;P&gt;targettable="Account"&lt;BR /&gt;echo "Start execution of ${targettable} table execution ${scripts_dir}"&lt;BR /&gt;echo "logged at ${log_dir}"&lt;BR /&gt;echo "File Datetime: ${FILE_DATETIME}"&lt;BR /&gt;echo "queue name: ${queue_name}"&lt;BR /&gt;echo "............"&lt;BR /&gt;echo "${scripts_dir}${targettable}_TXT_to_HIST.hql"&lt;BR /&gt;echo "............"&lt;/P&gt;&lt;P&gt;# creating log files for hive file processing&lt;BR /&gt;log_file_name=${log_dir}${targettable}data_load_${FILE_DATETIME}.log&lt;/P&gt;&lt;P&gt;touch $log_file_name&lt;BR /&gt;exec &amp;gt;&amp;gt; $log_file_name;&lt;BR /&gt;exec 2&amp;gt;&amp;gt; $log_file_name;&lt;/P&gt;&lt;P&gt;echo "successfully created logfile...."&lt;BR /&gt;echo $log_file_name&lt;/P&gt;&lt;P&gt;echo "Script executed by `whoami` at `date "+%Y-%m-%d %H:%M:%S"`"&lt;BR /&gt;echo "Project directory: $dir_project"&lt;/P&gt;&lt;P&gt;job_message="Populable ${targettable} table"&lt;BR /&gt;user=`whoami`&lt;BR /&gt;incrementaltable=${targettable}_stg&lt;BR /&gt;job_id=1&lt;/P&gt;&lt;P&gt;...contd&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 04:50:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/issue-with-running-sh-file/m-p/2356447#M121973</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-31T04:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: issue with running .sh file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/issue-with-running-sh-file/m-p/2356448#M121974</link>
      <description>&lt;P&gt;Any update to this please. If any questions please let me know.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 21:20:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/issue-with-running-sh-file/m-p/2356448#M121974</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-31T21:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: issue with running .sh file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/issue-with-running-sh-file/m-p/2356449#M121975</link>
      <description>hello,
&lt;BR /&gt;Right click on your .sh file and select Properties:
&lt;BR /&gt;
&lt;BR /&gt;In the Permissions tab, check Allow executing file as program:
&lt;BR /&gt;
&lt;BR /&gt;Close the Properties window and double-click the file. A dialog will pop up giving you the option to run the script in a terminal:
&lt;BR /&gt;regards
&lt;BR /&gt;jenifer
&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Jun 2018 02:13:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/issue-with-running-sh-file/m-p/2356449#M121975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-01T02:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: issue with running .sh file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/issue-with-running-sh-file/m-p/2356450#M121976</link>
      <description>&lt;P&gt;Hi, this sh file is in unix machine. And I am connecting to execute from Talend.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 03:21:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/issue-with-running-sh-file/m-p/2356450#M121976</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-01T03:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: issue with running .sh file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/issue-with-running-sh-file/m-p/2356451#M121977</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add wait in shell script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 06:37:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/issue-with-running-sh-file/m-p/2356451#M121977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-01T06:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: issue with running .sh file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/issue-with-running-sh-file/m-p/2356452#M121978</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suppose cmd is having your script(.sh) then assuming it takes time more than 30 sec (time taking task) then&lt;BR /&gt;refer below Script.&lt;BR /&gt;Hope it helps!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cmd="run.sh"&lt;BR /&gt;status="Running"&lt;BR /&gt;while [ "$status" != "Completed"]&lt;BR /&gt;do&lt;BR /&gt;result=`ps aux | grep -i "$cmd" | grep -v "grep" | wc -l`&lt;BR /&gt;if [ $result -lt 1 ]&lt;BR /&gt;then&lt;BR /&gt;echo "script $cmd completed sucessfully ! "&lt;BR /&gt;status="Completed"&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;echo "Completed the Task"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't forget to give kudos when a reply is helpful&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 07:02:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/issue-with-running-sh-file/m-p/2356452#M121978</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-01T07:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: issue with running .sh file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/issue-with-running-sh-file/m-p/2356453#M121979</link>
      <description>&lt;P&gt;Give execute permission to your script:&lt;/P&gt;&lt;P&gt;chmod +x /path/to/yourscript.sh&lt;/P&gt;&lt;P&gt;And to run your script:&lt;/P&gt;&lt;P&gt;/path/to/yourscript.sh&lt;/P&gt;&lt;P&gt;Since&amp;nbsp;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;refers to the current directory: if&amp;nbsp;&lt;/P&gt;&lt;P&gt;yourscript.sh&lt;/P&gt;&lt;P&gt;&amp;nbsp;is in the current directory, you can simplify this to:&lt;/P&gt;&lt;P&gt;./yourscript.sh &lt;/P&gt;&lt;P&gt;&lt;A href="https://jiofilocalhtml.run" alt="https://jiofilocalhtml.run" target="_blank"&gt;https://jiofilocalhtml.run&lt;/A&gt; &lt;A href="https://forpc.onl" alt="https://forpc.onl" target="_blank"&gt;https://forpc.onl&lt;/A&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 12:24:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/issue-with-running-sh-file/m-p/2356453#M121979</guid>
      <dc:creator>pmusk1601547000</dc:creator>
      <dc:date>2020-10-01T12:24:05Z</dc:date>
    </item>
  </channel>
</rss>

