<?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: Java application. exitValue() of a HP-UX Script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/java-application-exitvalue-of-a-hp-ux-script/m-p/2447590#M729025</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;just an idea:&lt;BR /&gt;put at the first line:&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;and replace at the end exit 32 with:&lt;BR /&gt;return 32&lt;BR /&gt;&lt;BR /&gt;Don't know if this works but give it a try.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Andrew</description>
    <pubDate>Mon, 25 Sep 2000 12:04:29 GMT</pubDate>
    <dc:creator>Andreas Voss</dc:creator>
    <dc:date>2000-09-25T12:04:29Z</dc:date>
    <item>
      <title>Java application. exitValue() of a HP-UX Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-application-exitvalue-of-a-hp-ux-script/m-p/2447589#M729024</link>
      <description>I'am writing a Java aplication that will be executed under several plataforms and which make programs to execute.&lt;BR /&gt;&lt;BR /&gt;I use a Process objet....&lt;BR /&gt;&lt;BR /&gt;Process child=Runtime.getRuntime().exec(path);&lt;BR /&gt;&lt;BR /&gt;...I do a waitFor() and then I get the exit value in an int variable whith exitValue() method.&lt;BR /&gt;&lt;BR /&gt;This work well with executable files.&lt;BR /&gt;&lt;BR /&gt;But I need to execute Unix scripts (HP-UX) and get the exit value.&lt;BR /&gt;At the last line of the scripts I write the instruction exit n (where n is an integer number), but the exitValue I get is always 255.&lt;BR /&gt;&lt;BR /&gt;Could anyone help me?. How can I get the exit Value of a Unix Script?</description>
      <pubDate>Mon, 25 Sep 2000 07:29:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-application-exitvalue-of-a-hp-ux-script/m-p/2447589#M729024</guid>
      <dc:creator>Jes·s</dc:creator>
      <dc:date>2000-09-25T07:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Java application. exitValue() of a HP-UX Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-application-exitvalue-of-a-hp-ux-script/m-p/2447590#M729025</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;just an idea:&lt;BR /&gt;put at the first line:&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;and replace at the end exit 32 with:&lt;BR /&gt;return 32&lt;BR /&gt;&lt;BR /&gt;Don't know if this works but give it a try.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Andrew</description>
      <pubDate>Mon, 25 Sep 2000 12:04:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-application-exitvalue-of-a-hp-ux-script/m-p/2447590#M729025</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-09-25T12:04:29Z</dc:date>
    </item>
  </channel>
</rss>

