<?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 tSSH Component is not able to run multiple commands in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tSSH-Component-is-not-able-to-run-multiple-commands/m-p/2288990#M62409</link>
    <description>Hi All, 
&lt;BR /&gt;I'm using tSSH component to connect to windows machine using SSH. 
&lt;BR /&gt;I'm able to connect to the machine and able to run single command. I want to run multiple commands. 
&lt;BR /&gt;I tried with the option Command Separator. If I use multiple commands it's showing the error as "Unable to execute command or shell on remote system: Failed to Execute process." 
&lt;BR /&gt;PFA the screenshot of the tSSH properties. 
&lt;BR /&gt;Any help/suggestion is highly appreciated. 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Siva 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDzQ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128745i20F5E04D88294B49/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDzQ.png" alt="0683p000009MDzQ.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Tue, 10 Jun 2014 11:19:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-06-10T11:19:36Z</dc:date>
    <item>
      <title>tSSH Component is not able to run multiple commands</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSSH-Component-is-not-able-to-run-multiple-commands/m-p/2288990#M62409</link>
      <description>Hi All, 
&lt;BR /&gt;I'm using tSSH component to connect to windows machine using SSH. 
&lt;BR /&gt;I'm able to connect to the machine and able to run single command. I want to run multiple commands. 
&lt;BR /&gt;I tried with the option Command Separator. If I use multiple commands it's showing the error as "Unable to execute command or shell on remote system: Failed to Execute process." 
&lt;BR /&gt;PFA the screenshot of the tSSH properties. 
&lt;BR /&gt;Any help/suggestion is highly appreciated. 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Siva 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDzQ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128745i20F5E04D88294B49/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDzQ.png" alt="0683p000009MDzQ.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 10 Jun 2014 11:19:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSSH-Component-is-not-able-to-run-multiple-commands/m-p/2288990#M62409</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-10T11:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: tSSH Component is not able to run multiple commands</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSSH-Component-is-not-able-to-run-multiple-commands/m-p/2288991#M62410</link>
      <description>Yo have an OpenSSH server on a Windows machine?</description>
      <pubDate>Tue, 10 Jun 2014 16:33:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSSH-Component-is-not-able-to-run-multiple-commands/m-p/2288991#M62410</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-10T16:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: tSSH Component is not able to run multiple commands</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSSH-Component-is-not-able-to-run-multiple-commands/m-p/2288992#M62411</link>
      <description>&lt;P&gt;&lt;STRONG&gt;1.if the openssh server is windows hosted, then you can&amp;nbsp;&amp;nbsp;use "&amp;amp;" as a separator rather than ";"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Run multiple commands (cmd1, cmd2, cmd3) in one line:&lt;/P&gt;&lt;P&gt;cmd1 &amp;amp; cmd2 &amp;amp; cmd3&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;// run all commands from left to right (&amp;amp; =&amp;gt; all)&lt;BR /&gt;cmd1 &amp;amp;&amp;amp; cmd2 &amp;amp;&amp;amp; cmd3&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;// run all commands from left to right, stop at 1st fail (&amp;amp;&amp;amp; =&amp;gt; till fail)&lt;BR /&gt;cmd1 | cmd2 | cmd3&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;// run all commands from left to right, stop at 1st fail, also | is pipe which sends cmd1 output to cmd2 &amp;amp; so on, so use when if you want to pass outputs to other commands - (| =&amp;gt; till fail + pass output of left to right)&lt;BR /&gt;cmd1 || cmd2 || cmd3&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;// run all commands from left to right, stop at 1st success (|| =&amp;gt; till good)&lt;/P&gt;&lt;P&gt;Summary:&lt;/P&gt;&lt;PRE&gt;&amp;amp;  =&amp;gt; run all  
&amp;amp;&amp;amp; =&amp;gt; run L2R till fail  
|  =&amp;gt; run L2R till fail + pass output of left to right  
|| =&amp;gt; run L2R till good
   where, L2R is left to right&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://stackoverflow.com/questions/50394413/how-to-run-multiple-commands-in-one-line-using-cmd-in-windows-10" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;https://stackoverflow.com/questions/50394413/how-to-run-multiple-commands-in-one-line-using-cmd-in-windows-10&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2.if openssh server is Linux hosted, please try with&amp;nbsp; "&amp;amp;&amp;amp;"&amp;nbsp;&amp;nbsp;as a separator;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;according to&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;|&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;pipes (pipelines) the standard output (stdout) of one command into the standard input of another one. Note that&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;stderr&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;still goes into its default destination, whatever that happen to be.&lt;/LI&gt;&lt;LI&gt;|&amp;amp;pipes both&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;stdout&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;stderr&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of one command into the standard input of another one. Very useful, available in bash version 4 and above.&lt;/LI&gt;&lt;LI&gt;&amp;amp;&amp;amp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;executes the right-hand command of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;amp;&amp;amp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;only if the previous one succeeded.&lt;/LI&gt;&lt;LI&gt;||&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;executes the right-hand command of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;||&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;only it the previous one failed.&lt;/LI&gt;&lt;LI&gt;;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;executes the right-hand command of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;always regardless whether the previous command succeeded or failed. Unless&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;set -e&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;was previously invoked, which causes&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;bash&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to fail on an error.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://stackoverflow.com/questions/5130847/running-multiple-commands-in-one-line-in-shell" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;https://stackoverflow.com/questions/5130847/running-multiple-commands-in-one-line-in-shell&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 22:47:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSSH-Component-is-not-able-to-run-multiple-commands/m-p/2288992#M62411</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-11T22:47:52Z</dc:date>
    </item>
  </channel>
</rss>

