<?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: How to know the Exit status of a executable in HP Unix through PERL in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-know-the-exit-status-of-a-executable-in-hp-unix-through/m-p/4147713#M93458</link>
    <description>Webmasters, please remove my first reply.&lt;BR /&gt;This only happens because there are minutes between clicking submit and waiting for the server confirmational response.</description>
    <pubDate>Wed, 20 Feb 2008 16:43:51 GMT</pubDate>
    <dc:creator>Ralph Grothe</dc:creator>
    <dc:date>2008-02-20T16:43:51Z</dc:date>
    <item>
      <title>How to know the Exit status of a executable in HP Unix through PERL</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-know-the-exit-status-of-a-executable-in-hp-unix-through/m-p/4147709#M93454</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;       Can any one please help me to solve the below problem.&lt;BR /&gt;&lt;BR /&gt;       I have a perl script. In the Perl script i am executing a "a.out" file using the system("./a.out"). &lt;BR /&gt;      &lt;BR /&gt;        But, I want to check whether the a.out terminated normally without causing any "Bus Error" or "Segmentation Fault".&lt;BR /&gt;&lt;BR /&gt;       CAn i do this using "$?". If yes what will be the exit status for normal execution. And does this exit status differ for different flavours of UNIX like Linux and SunOs.&lt;BR /&gt;&lt;BR /&gt;thanks in advance &lt;BR /&gt;regards&lt;BR /&gt;Vikram &lt;BR /&gt;</description>
      <pubDate>Wed, 20 Feb 2008 13:01:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-know-the-exit-status-of-a-executable-in-hp-unix-through/m-p/4147709#M93454</guid>
      <dc:creator>CA1490051</dc:creator>
      <dc:date>2008-02-20T13:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to know the Exit status of a executable in HP Unix through PERL</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-know-the-exit-status-of-a-executable-in-hp-unix-through/m-p/4147710#M93455</link>
      <description>Hi Vikram:&lt;BR /&gt;&lt;BR /&gt;To obtain the exit value you need to examine the high eight bits of the value returned:&lt;BR /&gt;&lt;BR /&gt;Hence:&lt;BR /&gt;&lt;BR /&gt;# perl -le '$rc=system("/usr/bin/cp");print "exit status = ",$rc&amp;gt;&amp;gt;8'&lt;BR /&gt;&lt;BR /&gt;1&lt;BR /&gt;&lt;BR /&gt;...looks just like you did:&lt;BR /&gt;&lt;BR /&gt;# /usr/bin/cp; echo $?&lt;BR /&gt;1&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 20 Feb 2008 14:08:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-know-the-exit-status-of-a-executable-in-hp-unix-through/m-p/4147710#M93455</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-02-20T14:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to know the Exit status of a executable in HP Unix through PERL</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-know-the-exit-status-of-a-executable-in-hp-unix-through/m-p/4147711#M93456</link>
      <description>The explanation can be found in either&lt;BR /&gt;&lt;BR /&gt;perldoc -f system&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;perldoc perlvar&lt;BR /&gt;&lt;BR /&gt;if you look for $?</description>
      <pubDate>Wed, 20 Feb 2008 16:30:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-know-the-exit-status-of-a-executable-in-hp-unix-through/m-p/4147711#M93456</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2008-02-20T16:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to know the Exit status of a executable in HP Unix through PERL</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-know-the-exit-status-of-a-executable-in-hp-unix-through/m-p/4147712#M93457</link>
      <description>The explanation can be found in either&lt;BR /&gt;&lt;BR /&gt;perldoc -f system&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;perldoc perlvar&lt;BR /&gt;&lt;BR /&gt;if you look for $?&lt;BR /&gt;&lt;BR /&gt;Except for SIGKILL and SIGSTOP you can implement a signal handler by assigning the special Perl hash %SIG a code ref to the appropriate key which is the respective signal name without the prefix SIG.&lt;BR /&gt;Details to %SIG may also be found in perldoc perlvar.</description>
      <pubDate>Wed, 20 Feb 2008 16:41:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-know-the-exit-status-of-a-executable-in-hp-unix-through/m-p/4147712#M93457</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2008-02-20T16:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to know the Exit status of a executable in HP Unix through PERL</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-know-the-exit-status-of-a-executable-in-hp-unix-through/m-p/4147713#M93458</link>
      <description>Webmasters, please remove my first reply.&lt;BR /&gt;This only happens because there are minutes between clicking submit and waiting for the server confirmational response.</description>
      <pubDate>Wed, 20 Feb 2008 16:43:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-know-the-exit-status-of-a-executable-in-hp-unix-through/m-p/4147713#M93458</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2008-02-20T16:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to know the Exit status of a executable in HP Unix through PERL</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-know-the-exit-status-of-a-executable-in-hp-unix-through/m-p/4147714#M93459</link>
      <description>&amp;gt; This only happens because there are minutes&lt;BR /&gt;&amp;gt; between clicking submit and waiting for the&lt;BR /&gt;&amp;gt; server confirmational response.&lt;BR /&gt;&lt;BR /&gt;So, don't wait for that.  Wait a few seconds,&lt;BR /&gt;then re-view the topic.  (I open a new window&lt;BR /&gt;for the Reply, so it's easy to reload the&lt;BR /&gt;original thread's window after Submitting the&lt;BR /&gt;reply.)&lt;BR /&gt;&lt;BR /&gt;And when Submit from Preview fails for no&lt;BR /&gt;good reason, just back up to the pre-Preview&lt;BR /&gt;page, and try Submit from there.&lt;BR /&gt;&lt;BR /&gt;And when it gets all confused by switching&lt;BR /&gt;between forums11.itrc.hp.com and&lt;BR /&gt;forums12.itrc.hp.com, try editing the URL to&lt;BR /&gt;say forums.itrc.hp.com.&lt;BR /&gt;&lt;BR /&gt;And so on ...&lt;BR /&gt;&lt;BR /&gt;The Forum software appears to be garbage, but&lt;BR /&gt;figuring out how to work around its many&lt;BR /&gt;problems can be viewed as an entertaining&lt;BR /&gt;game (if you're easily entertained).</description>
      <pubDate>Wed, 20 Feb 2008 18:51:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-know-the-exit-status-of-a-executable-in-hp-unix-through/m-p/4147714#M93459</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-02-20T18:51:19Z</dc:date>
    </item>
  </channel>
</rss>

