<?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: Shell script execution slow in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-execution-slow/m-p/3350881#M712848</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;Certainly the find&lt;BR /&gt;&lt;BR /&gt;Put your logfiles in fixed places and then no find needed over the whole system.&lt;BR /&gt;&lt;BR /&gt;You can even use the ln command to&lt;BR /&gt;make 1 directory containing softlinks to all your log directories and only search via the start point with the -follow option&lt;BR /&gt;&lt;BR /&gt;            Steve Steel</description>
    <pubDate>Fri, 06 Aug 2004 02:18:24 GMT</pubDate>
    <dc:creator>Steve Steel</dc:creator>
    <dc:date>2004-08-06T02:18:24Z</dc:date>
    <item>
      <title>Shell script execution slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-execution-slow/m-p/3350875#M712842</link>
      <description>All,&lt;BR /&gt;&lt;BR /&gt;We have some shell scripts that take about couple of minutes to execute on HP UX 10.20. But the same shell scripts are taking more than 7 minutes to execute HP UX 11.00.&lt;BR /&gt;&lt;BR /&gt;Are there any parameters (shell / kernel) that can affect the execution of time of scripts so much?&lt;BR /&gt;If there are how do they need to be configured?&lt;BR /&gt;&lt;BR /&gt;Can there be any other reason for the slow execution of scripts?&lt;BR /&gt;&lt;BR /&gt;The scripts are mainly searching for some log files using find command and looking for messages in those files using grep command.&lt;BR /&gt;&lt;BR /&gt;Any help will be appreciated.&lt;BR /&gt;&lt;BR /&gt;Thank You.&lt;BR /&gt;Sanjib.</description>
      <pubDate>Thu, 05 Aug 2004 23:34:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-execution-slow/m-p/3350875#M712842</guid>
      <dc:creator>Sanjib Talukdar</dc:creator>
      <dc:date>2004-08-05T23:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script execution slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-execution-slow/m-p/3350876#M712843</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;If its using the find command then that probably explains the differences in execution time.  &lt;BR /&gt;&lt;BR /&gt;The larger the filesystem, the longer the find command will take to run. Try to limit the find to specific directories.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Con</description>
      <pubDate>Thu, 05 Aug 2004 23:40:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-execution-slow/m-p/3350876#M712843</guid>
      <dc:creator>Con O'Kelly</dc:creator>
      <dc:date>2004-08-05T23:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script execution slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-execution-slow/m-p/3350877#M712844</link>
      <description>Can you post the shell script.&lt;BR /&gt;&lt;BR /&gt;Might be someone can point to new options with 'find' to execute better.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Aug 2004 23:41:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-execution-slow/m-p/3350877#M712844</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2004-08-05T23:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script execution slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-execution-slow/m-p/3350878#M712845</link>
      <description>To check the exact time performance the execute as,&lt;BR /&gt;&lt;BR /&gt; time &lt;SHELL&gt; &amp;lt;scriptfile&amp;gt;&lt;BR /&gt;&lt;BR /&gt; It will give the time taken by the script&lt;BR /&gt;&lt;BR /&gt;Shell execution are depends upon the command and their environment and needs. Try to debug what your shell program doing as set -v or set -x (good) &lt;BR /&gt;&lt;BR /&gt;Trace out what it is doing differently there.&lt;BR /&gt;&lt;BR /&gt;Try to use effective logic's to use find / grep . Don't use cat logfile. Directly grep it or use &amp;lt; logfile.&lt;BR /&gt;&lt;BR /&gt;It is good to have your shell script and time performance &amp;amp; debugging difference&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Muthu&lt;/SHELL&gt;</description>
      <pubDate>Thu, 05 Aug 2004 23:46:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-execution-slow/m-p/3350878#M712845</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-08-05T23:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script execution slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-execution-slow/m-p/3350879#M712846</link>
      <description>Can you check the nice value which is used while executing these scripts?&lt;BR /&gt;&lt;BR /&gt;sks</description>
      <pubDate>Fri, 06 Aug 2004 00:02:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-execution-slow/m-p/3350879#M712846</guid>
      <dc:creator>Sanjay Kumar Suri</dc:creator>
      <dc:date>2004-08-06T00:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script execution slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-execution-slow/m-p/3350880#M712847</link>
      <description>Does your HP-UX 11.00 box have NFS mounted filesystems? I have found out to my cost that these slow down the find command.&lt;BR /&gt;&lt;BR /&gt;If so, try:&lt;BR /&gt;&lt;BR /&gt;find / -fsonly hfs&lt;BR /&gt;and find / -fsonly vxfs&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Fri, 06 Aug 2004 01:44:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-execution-slow/m-p/3350880#M712847</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2004-08-06T01:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script execution slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-execution-slow/m-p/3350881#M712848</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Certainly the find&lt;BR /&gt;&lt;BR /&gt;Put your logfiles in fixed places and then no find needed over the whole system.&lt;BR /&gt;&lt;BR /&gt;You can even use the ln command to&lt;BR /&gt;make 1 directory containing softlinks to all your log directories and only search via the start point with the -follow option&lt;BR /&gt;&lt;BR /&gt;            Steve Steel</description>
      <pubDate>Fri, 06 Aug 2004 02:18:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-execution-slow/m-p/3350881#M712848</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2004-08-06T02:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script execution slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-execution-slow/m-p/3350882#M712849</link>
      <description>All,&lt;BR /&gt;Thank you for your replies and suggestions.&lt;BR /&gt;I do not think we have any issue with the file system because this script is part of the application that we are porting from HP UX 10.20 to HP UX 11.00 and it searches only in specific directories and only for specific files using the find command. The structure of the directory/file system is same on both HP UX 10.20 and HP UX 11.00 systems.&lt;BR /&gt;We will use the shell settings (set -x and/or set -v) to check the execution of the script to see if tells us anything.&lt;BR /&gt;&lt;BR /&gt;Thank You.&lt;BR /&gt;Sanjib.</description>
      <pubDate>Fri, 06 Aug 2004 07:28:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-execution-slow/m-p/3350882#M712849</guid>
      <dc:creator>Sanjib Talukdar</dc:creator>
      <dc:date>2004-08-06T07:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script execution slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-execution-slow/m-p/3350883#M712850</link>
      <description>The shell is running full speed and will have virtually no differences between versions of HP-UX. As mentioned, it's the commands inside the shell that consume most of the time. By running with the -x option (ie, sh -x your_script or inserting set -x inside the script) you'll see the slow spots. Note that if the script is using functions, the -x option will be ignored during the time that the function is running. However, if you see those function calls pausing for a while, you can then trace just the function by inserting set -x inside the function.</description>
      <pubDate>Fri, 06 Aug 2004 08:35:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-execution-slow/m-p/3350883#M712850</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-08-06T08:35:30Z</dc:date>
    </item>
  </channel>
</rss>

