<?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 Re: Call Windows powershell script from tSystem in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272211#M49552</link>
    <description>Do you close Excel object ?&lt;BR /&gt;Post your script.</description>
    <pubDate>Sat, 12 Feb 2011 17:13:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-02-12T17:13:26Z</dc:date>
    <item>
      <title>Call Windows powershell script from tSystem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272204#M49545</link>
      <description>Hello,
&lt;BR /&gt;I need to call an Excel macro from Talend. In order to do that I wrapped my commands in PowerShell script which I can call either from powershell or cmd.
&lt;BR /&gt;Example below runs fine:
&lt;BR /&gt;C:\ETL_Talend\macros&amp;gt;cmd /c powershell C:\ETL_Talend\macros\Talend_run_Excel_macro.ps1
&lt;BR /&gt;However, when I run the same line from Talend's component tSystem I get an error:
&lt;BR /&gt;***************
&lt;BR /&gt;Starting job CallExcelMacro at 15:39 08/02/2011.
&lt;BR /&gt;'powershell' is not recognized as an internal or external command,
&lt;BR /&gt;operable program or batch file.
&lt;BR /&gt; connecting to socket on port 3443
&lt;BR /&gt; connected
&lt;BR /&gt; disconnected
&lt;BR /&gt;Job CallExcelMacro ended at 15:39 08/02/2011. 
&lt;BR /&gt;***************
&lt;BR /&gt;Please help.
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Peter.</description>
      <pubDate>Sat, 16 Nov 2024 13:06:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272204#M49545</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Call Windows powershell script from tSystem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272205#M49546</link>
      <description>Hi
&lt;BR /&gt;Try to add the path of powershell command to system variable PATH or specify the path of powershell command via 'use home directory'.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 09 Feb 2011 07:04:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272205#M49546</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-09T07:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Call Windows powershell script from tSystem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272206#M49547</link>
      <description>Thank you Shong.
&lt;BR /&gt;I added a path to powershell to my system PATH env. variable - I no longer get error I mentioned.
&lt;BR /&gt;However, job making a call never complets. Only after I kill Talend job Excel macro really runs and does what I expect.
&lt;BR /&gt;Please help.
&lt;BR /&gt;Thank you,
&lt;BR /&gt;Peter.</description>
      <pubDate>Thu, 10 Feb 2011 23:40:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272206#M49547</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-10T23:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Call Windows powershell script from tSystem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272207#M49548</link>
      <description>Hi
&lt;BR /&gt;Sorry, I don't understand your problem now. If the command works fine on windows cmd, it should work also in tSystem.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 11 Feb 2011 01:24:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272207#M49548</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-11T01:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Call Windows powershell script from tSystem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272208#M49549</link>
      <description>That is the problem - tSystem does not work. 
&lt;BR /&gt;It appears that the job is running but never exits and completes. There are no error messages. 
&lt;BR /&gt;I followed sugestion from that post: 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCpzKCAS" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Calling-Excel-Macro-from-Talend-Job/td-p/105758&lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Please help. 
&lt;BR /&gt;Peter.</description>
      <pubDate>Fri, 11 Feb 2011 17:55:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272208#M49549</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-11T17:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Call Windows powershell script from tSystem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272209#M49550</link>
      <description>Hi 
&lt;BR /&gt;I am not family with Excel macro, there should be a problem in powershell script, maybe emaxt6 can help you. I will notify this post to him.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Sat, 12 Feb 2011 03:24:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272209#M49550</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-12T03:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Call Windows powershell script from tSystem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272210#M49551</link>
      <description>Hi 
&lt;BR /&gt;There is a problem while executing batch file through Java. If there are multiple line in the batch file, the program just go on and on. It never stops. 
&lt;BR /&gt;You can test this by writing a simple Java program and calling a batch file. 
&lt;B&gt; This is not an issue of Talend&lt;/B&gt; 
&lt;BR /&gt;I have experienced this issue with Java programs although never tried in Talend.</description>
      <pubDate>Sat, 12 Feb 2011 08:39:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272210#M49551</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-12T08:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Call Windows powershell script from tSystem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272211#M49552</link>
      <description>Do you close Excel object ?&lt;BR /&gt;Post your script.</description>
      <pubDate>Sat, 12 Feb 2011 17:13:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272211#M49552</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-12T17:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Call Windows powershell script from tSystem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272212#M49553</link>
      <description>Yes, I close everything and make sure that Excel process is not running. There isknown problem with Excel process not being properly stopped by powershell, I take care of that by simply killing it. Here is my powershell script content: 
&lt;BR /&gt;*********************************** 
&lt;BR /&gt;# $excel = new-object -comobject excel.application 
&lt;BR /&gt;$excel = new-object -com Excel.Application 
&lt;BR /&gt;$workbook = $excel.workbooks.open("C:\ETL_Talend\macros\IRI\Test.xlsm") 
&lt;BR /&gt;$excel.Run("TestMacro") 
&lt;BR /&gt;$workbook.Save() 
&lt;BR /&gt;$workbook.Close() 
&lt;BR /&gt;$excel.Quit() 
&lt;BR /&gt;::ReleaseComObject($excel) 
&lt;BR /&gt;Remove-Variable excel 
&lt;BR /&gt;Stop-Process -name EXCEL 
&lt;BR /&gt;********************************* 
&lt;BR /&gt;But it seems the problem is not with Excel macro but with how Talend interacts with Powershell. I wrote a simple powershell script which just executes a few powershell commands - I bump into the same problem - Talend job never exits.</description>
      <pubDate>Mon, 14 Feb 2011 08:11:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272212#M49553</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-14T08:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Call Windows powershell script from tSystem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272213#M49554</link>
      <description>Launch it as a separate process, ie. in tSystem &lt;BR /&gt;"cmd /c start powershell -noninteractive -File c:\\temp\\test\\launch.ps1"</description>
      <pubDate>Mon, 14 Feb 2011 11:14:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272213#M49554</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-14T11:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Call Windows powershell script from tSystem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272214#M49555</link>
      <description>emaxt6, the command you suggested does not work as is. It seems working fine when I remove -File parameter. 
&lt;BR /&gt;"cmd /c start powershell -noninteractive c:\\temp\\test\\launch.ps1" 
&lt;BR /&gt;Thanks a lot for your help! 
&lt;BR /&gt;Peter.</description>
      <pubDate>Wed, 16 Feb 2011 16:49:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272214#M49555</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-16T16:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Call Windows powershell script from tSystem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272215#M49556</link>
      <description>anyway I've opened a bugtraq &lt;A href="http://www.talendforge.org/bugs/view.php?id=18916" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/bugs/view.php?id=18916&lt;/A&gt; to let the Talend team investigate...&lt;BR /&gt;I think powershell waits on its standard input descriptor from parent job before proceeding ...&lt;BR /&gt;&lt;BR /&gt;bye</description>
      <pubDate>Wed, 16 Feb 2011 19:11:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272215#M49556</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-16T19:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Call Windows powershell script from tSystem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272216#M49557</link>
      <description>Try using this syntax when laucnhing a powershell from a batch file
&lt;BR /&gt;echo . | powershell -file tour_ps_file.ps1</description>
      <pubDate>Wed, 30 Nov 2011 13:48:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272216#M49557</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-11-30T13:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Call Windows powershell script from tSystem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272217#M49558</link>
      <description>Hi Peter, 
&lt;BR /&gt;As you have experience in powershell and running VB Macro,Can you please write down the steps to create a powershell and calling that in talend(All required steps). 
&lt;BR /&gt;Appreciated your help. 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Pranij 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hello,&lt;BR /&gt;I need to call an Excel macro from Talend. In order to do that I wrapped my commands in PowerShell script which I can call either from powershell or cmd.&lt;BR /&gt;Example below runs fine:&lt;BR /&gt;C:\ETL_Talend\macros&amp;gt;cmd /c powershell C:\ETL_Talend\macros\Talend_run_Excel_macro.ps1&lt;BR /&gt;However, when I run the same line from Talend's component tSystem I get an error:&lt;BR /&gt;***************&lt;BR /&gt;Starting job CallExcelMacro at 15:39 08/02/2011.&lt;BR /&gt;'powershell' is not recognized as an internal or external command,&lt;BR /&gt;operable program or batch file.&lt;BR /&gt; connecting to socket on port 3443&lt;BR /&gt; connected&lt;BR /&gt; disconnected&lt;BR /&gt;Job CallExcelMacro ended at 15:39 08/02/2011. &lt;BR /&gt;***************&lt;BR /&gt;Please help.&lt;BR /&gt;Thanks,&lt;BR /&gt;Peter.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 14 Nov 2012 15:07:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272217#M49558</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-11-14T15:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Call Windows powershell script from tSystem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272218#M49559</link>
      <description>Hi,&lt;BR /&gt;Iam also trying to run the VBA Macro from talend ....Can Somebody help me with Steps...</description>
      <pubDate>Fri, 23 Nov 2012 10:28:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-Windows-powershell-script-from-tSystem/m-p/2272218#M49559</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-23T10:28:46Z</dc:date>
    </item>
  </channel>
</rss>

