<?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: time command. Getting a return code 2 from a time command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/time-command-getting-a-return-code-2-from-a-time-command/m-p/4280010#M688546</link>
    <description>This is the message we are getting and then check the RC.&lt;BR /&gt;&lt;BR /&gt;time: command terminated abnormally.&lt;BR /&gt;</description>
    <pubDate>Thu, 02 Oct 2008 17:23:00 GMT</pubDate>
    <dc:creator>Wayne Moyer</dc:creator>
    <dc:date>2008-10-02T17:23:00Z</dc:date>
    <item>
      <title>time command. Getting a return code 2 from a time command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-command-getting-a-return-code-2-from-a-time-command/m-p/4280008#M688544</link>
      <description>I an starting a process using a time command in a script. When I test the return code sometimes I get a return code of 2. This just stated happening this morning and it happens intermittently. Where can I find the reason for the return codes. Has anyone else seen this?</description>
      <pubDate>Thu, 02 Oct 2008 14:53:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-command-getting-a-return-code-2-from-a-time-command/m-p/4280008#M688544</guid>
      <dc:creator>Wayne Moyer</dc:creator>
      <dc:date>2008-10-02T14:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: time command. Getting a return code 2 from a time command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-command-getting-a-return-code-2-from-a-time-command/m-p/4280009#M688545</link>
      <description>Hi Wayne:&lt;BR /&gt;&lt;BR /&gt;I believe that you are seeing the return code of the command or process that you are timing.  For example, consider this:&lt;BR /&gt;&lt;BR /&gt;# grep SOMETHING /etc/NOFILE; echo $?&lt;BR /&gt;grep: can't open /etc/NOFILE&lt;BR /&gt;2&lt;BR /&gt;&lt;BR /&gt;# time grep SOMETHING /etc/NOFILE;echo $?&lt;BR /&gt;grep: can't open /etc/NOFILE&lt;BR /&gt;real 0.0&lt;BR /&gt;user 0.0&lt;BR /&gt;sys 0.0&lt;BR /&gt;2&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Oct 2008 15:52:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-command-getting-a-return-code-2-from-a-time-command/m-p/4280009#M688545</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-10-02T15:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: time command. Getting a return code 2 from a time command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-command-getting-a-return-code-2-from-a-time-command/m-p/4280010#M688546</link>
      <description>This is the message we are getting and then check the RC.&lt;BR /&gt;&lt;BR /&gt;time: command terminated abnormally.&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Oct 2008 17:23:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-command-getting-a-return-code-2-from-a-time-command/m-p/4280010#M688546</guid>
      <dc:creator>Wayne Moyer</dc:creator>
      <dc:date>2008-10-02T17:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: time command. Getting a return code 2 from a time command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-command-getting-a-return-code-2-from-a-time-command/m-p/4280011#M688547</link>
      <description>Hi (again) Wayne:&lt;BR /&gt;&lt;BR /&gt;Posting the actual code you are running when you receive the error along with a clear notation of the release (from 'uname -a') whould be helpful.&lt;BR /&gt;&lt;BR /&gt;You say "a script".  I assume that you mean a shell script.  If so, what shell?  Showing the interpreter line (e.g. #!/usr/bin/sh) would expose that detail.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 02 Oct 2008 18:01:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-command-getting-a-return-code-2-from-a-time-command/m-p/4280011#M688547</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-10-02T18:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: time command. Getting a return code 2 from a time command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-command-getting-a-return-code-2-from-a-time-command/m-p/4280012#M688548</link>
      <description>I attached the script. In there you will see the time command and the return code check.&lt;BR /&gt;&lt;BR /&gt;# uname -a&lt;BR /&gt;HP-UX amiadv B.11.11 U 9000/800 2591752923 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 02 Oct 2008 18:53:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-command-getting-a-return-code-2-from-a-time-command/m-p/4280012#M688548</guid>
      <dc:creator>Wayne Moyer</dc:creator>
      <dc:date>2008-10-02T18:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: time command. Getting a return code 2 from a time command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-command-getting-a-return-code-2-from-a-time-command/m-p/4280013#M688549</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;I'm still of the opinion that it is the return code of the process that you are running that you are seeing.&lt;BR /&gt;&lt;BR /&gt;Is '$AMISYS_ROOT_EXECUTE/bin/bcp0100' terminating abnormally, perhaps leaving a 'core' file behind when you get the return code of two?&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 02 Oct 2008 19:55:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-command-getting-a-return-code-2-from-a-time-command/m-p/4280013#M688549</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-10-02T19:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: time command. Getting a return code 2 from a time command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-command-getting-a-return-code-2-from-a-time-command/m-p/4280014#M688550</link>
      <description>&amp;gt;Where can I find the reason for the return codes.&lt;BR /&gt;&lt;BR /&gt;As JRF said and your script comments indicate, the return code comes from bcp0100:&lt;BR /&gt;echo 'Program bcp0100 called ABORT/QUIT: time'&lt;BR /&gt;&lt;BR /&gt;The message "time: command terminated abnormally" indicates bcp0100 got a signal.&lt;BR /&gt;Signal 2 is SIGINT.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;JRF: I'm still of the opinion that it is the return code of the process&lt;BR /&gt;&lt;BR /&gt;Exactly.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;perhaps leaving a 'core' file behind when you get the return code of two?&lt;BR /&gt;&lt;BR /&gt;No core files for SIGINT.</description>
      <pubDate>Thu, 02 Oct 2008 22:07:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-command-getting-a-return-code-2-from-a-time-command/m-p/4280014#M688550</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-10-02T22:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: time command. Getting a return code 2 from a time command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-command-getting-a-return-code-2-from-a-time-command/m-p/4280015#M688551</link>
      <description>Thanks for the response.</description>
      <pubDate>Fri, 03 Oct 2008 10:19:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-command-getting-a-return-code-2-from-a-time-command/m-p/4280015#M688551</guid>
      <dc:creator>Wayne Moyer</dc:creator>
      <dc:date>2008-10-03T10:19:18Z</dc:date>
    </item>
  </channel>
</rss>

