<?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: Execution Time in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/execution-time/m-p/3147344#M717894</link>
    <description>at every scipt's start and end put something like this&lt;BR /&gt;&lt;BR /&gt;echo "starting Execution at 1date1" &amp;gt;&amp;gt; /log_file&lt;BR /&gt;&lt;BR /&gt;Echo "completed execution at `date`" &amp;gt;&amp;gt; /log_file&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 17 Dec 2003 12:22:01 GMT</pubDate>
    <dc:creator>RAC_1</dc:creator>
    <dc:date>2003-12-17T12:22:01Z</dc:date>
    <item>
      <title>Execution Time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execution-time/m-p/3147341#M717891</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I execute 15 shell scripts from one main shell script. Main shell scripts writes log file for all other child scripts.&lt;BR /&gt;&lt;BR /&gt;Now i need to include the start time (date,hours,mins and seconds) and end time&lt;BR /&gt;and total execution time of each script.&lt;BR /&gt;&lt;BR /&gt;So when i open the main log file it should &lt;BR /&gt;say &lt;BR /&gt;&lt;BR /&gt;OUTPUT of LOG.&lt;BR /&gt;&lt;BR /&gt;Script1 started at 12/16/2003 11:30:23AM&lt;BR /&gt;x&lt;BR /&gt;y&lt;BR /&gt;z&lt;BR /&gt;Script1 Ended at 12/16/2003 11:45:23AM&lt;BR /&gt;Total Execution time 0 hrs 15 mins 0 seconds.&lt;BR /&gt;&lt;BR /&gt;Any help?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Raj&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Dec 2003 12:16:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execution-time/m-p/3147341#M717891</guid>
      <dc:creator>Prabhu_7</dc:creator>
      <dc:date>2003-12-17T12:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Execution Time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execution-time/m-p/3147342#M717892</link>
      <description>Try using "time" command for each script.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 17 Dec 2003 12:19:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execution-time/m-p/3147342#M717892</guid>
      <dc:creator>DIPAK KUMAR ROY</dc:creator>
      <dc:date>2003-12-17T12:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Execution Time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execution-time/m-p/3147343#M717893</link>
      <description>Raj,&lt;BR /&gt;&lt;BR /&gt;You could simply "echo `date` &amp;gt; LOG" at the start and end and use the "time" command to get the durations.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 17 Dec 2003 12:20:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execution-time/m-p/3147343#M717893</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-12-17T12:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Execution Time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execution-time/m-p/3147344#M717894</link>
      <description>at every scipt's start and end put something like this&lt;BR /&gt;&lt;BR /&gt;echo "starting Execution at 1date1" &amp;gt;&amp;gt; /log_file&lt;BR /&gt;&lt;BR /&gt;Echo "completed execution at `date`" &amp;gt;&amp;gt; /log_file&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Dec 2003 12:22:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execution-time/m-p/3147344#M717894</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2003-12-17T12:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Execution Time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execution-time/m-p/3147345#M717895</link>
      <description>You can find the start and end times with 'date' command and the total execution time with 'timex' command:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;echo "Script started at `date`"&lt;BR /&gt;timex script #grep the real time value here to TIME&lt;BR /&gt;echo "Script ended at `date`"&lt;BR /&gt;echo total time $TIME</description>
      <pubDate>Wed, 17 Dec 2003 12:25:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execution-time/m-p/3147345#M717895</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2003-12-17T12:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Execution Time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execution-time/m-p/3147346#M717896</link>
      <description>Hi,&lt;BR /&gt;for the elapsed time in a script, try the SECONDS varable of the korn shell:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;sleep 3&lt;BR /&gt;echo Total execution time: $SECONDS seconds&lt;BR /&gt; &lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Wed, 17 Dec 2003 12:52:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execution-time/m-p/3147346#M717896</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2003-12-17T12:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Execution Time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execution-time/m-p/3147347#M717897</link>
      <description>Can anyone give me a piece of code to do this? as i'm having very less time to code it.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot&lt;BR /&gt;Raj</description>
      <pubDate>Wed, 17 Dec 2003 13:54:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execution-time/m-p/3147347#M717897</guid>
      <dc:creator>Prabhu_7</dc:creator>
      <dc:date>2003-12-17T13:54:57Z</dc:date>
    </item>
  </channel>
</rss>

