<?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 Checking the status of the script on remote machine in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/checking-the-status-of-the-script-on-remote-machine/m-p/4239011#M62336</link>
    <description>Hi!&lt;BR /&gt;I have a script, which calls another script on a remote machine using ssh.&lt;BR /&gt;I need to check if the remote running script is succesful. If it is succesful I need to continue the for loop (run it on another machine) or break the loop.&lt;BR /&gt;&lt;BR /&gt;Please let me know if anyone has an idea on checking the status of the script on remote machine</description>
    <pubDate>Wed, 23 Jul 2008 10:54:16 GMT</pubDate>
    <dc:creator>Rohit Khaladkar</dc:creator>
    <dc:date>2008-07-23T10:54:16Z</dc:date>
    <item>
      <title>Checking the status of the script on remote machine</title>
      <link>https://community.hpe.com/t5/operating-system-linux/checking-the-status-of-the-script-on-remote-machine/m-p/4239011#M62336</link>
      <description>Hi!&lt;BR /&gt;I have a script, which calls another script on a remote machine using ssh.&lt;BR /&gt;I need to check if the remote running script is succesful. If it is succesful I need to continue the for loop (run it on another machine) or break the loop.&lt;BR /&gt;&lt;BR /&gt;Please let me know if anyone has an idea on checking the status of the script on remote machine</description>
      <pubDate>Wed, 23 Jul 2008 10:54:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/checking-the-status-of-the-script-on-remote-machine/m-p/4239011#M62336</guid>
      <dc:creator>Rohit Khaladkar</dc:creator>
      <dc:date>2008-07-23T10:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Checking the status of the script on remote machine</title>
      <link>https://community.hpe.com/t5/operating-system-linux/checking-the-status-of-the-script-on-remote-machine/m-p/4239012#M62337</link>
      <description>Hi Rohit:&lt;BR /&gt;&lt;BR /&gt;You can do something like this (by example):&lt;BR /&gt;&lt;BR /&gt;# RC=$(ssh someserver 'uname -a &amp;gt;/tmp/output 2&amp;gt;&amp;amp;1;echo $?');echo ${RC}&lt;BR /&gt;&lt;BR /&gt;You can substitute '/dev/null' for the '/tmp/output' file in this example and you can change the '-a' switch to an invalid value for proof.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Jul 2008 12:44:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/checking-the-status-of-the-script-on-remote-machine/m-p/4239012#M62337</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-07-23T12:44:55Z</dc:date>
    </item>
  </channel>
</rss>

