<?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: Cron script hogging cpu in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-script-hogging-cpu/m-p/6895392#M489701</link>
    <description>&lt;P&gt;&amp;gt; What could be the reason ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I don't know.&amp;nbsp; Almost anything?&amp;nbsp; What's "$1"?&amp;nbsp; What's in&lt;BR /&gt;"/nos/ure/$1"?&amp;nbsp; What happens when you run the script interactively on&lt;BR /&gt;these systems?&amp;nbsp; (You can test your script on your systems in your&lt;BR /&gt;environment more easily than anyone here can.)&lt;/P&gt;&lt;P&gt;&amp;gt; [...] users call their profile [...]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Do all users have see the same behavior?&amp;nbsp; What's in "their profile"?&lt;BR /&gt;Is the script causing the problem, or is "their profile" causing it?&lt;/P&gt;</description>
    <pubDate>Fri, 02 Sep 2016 13:14:20 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2016-09-02T13:14:20Z</dc:date>
    <item>
      <title>Cron script hogging cpu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-script-hogging-cpu/m-p/6895289#M489700</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have scron scripts in cron which application users call their profile and execute some scripts.&lt;/P&gt;&lt;P&gt;What we have observed is that for one host when its running its shoots sys% to 75% in top.&lt;/P&gt;&lt;P&gt;What could be the reason ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Script is shown below:&lt;/P&gt;&lt;P&gt;#!/bin/ksh&lt;BR /&gt;trap "" 1 2 3 15&lt;BR /&gt;set -e&lt;BR /&gt;REALNAME=`id | cut -d"(" -f2 | cut -d")" -f1`&lt;BR /&gt;exit_value=1&lt;BR /&gt;if [ -r /nos/ure/$1 ] ; then&lt;BR /&gt;for i in `cat /nos/ure/$1`&lt;BR /&gt;do&lt;BR /&gt;if [ "$i" = "$REALNAME" ] ; then&lt;BR /&gt;exit_value=0&lt;BR /&gt;break&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;fi&lt;BR /&gt;exit $exit_value&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2016 05:22:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-script-hogging-cpu/m-p/6895289#M489700</guid>
      <dc:creator>chindi</dc:creator>
      <dc:date>2016-09-02T05:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cron script hogging cpu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-script-hogging-cpu/m-p/6895392#M489701</link>
      <description>&lt;P&gt;&amp;gt; What could be the reason ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I don't know.&amp;nbsp; Almost anything?&amp;nbsp; What's "$1"?&amp;nbsp; What's in&lt;BR /&gt;"/nos/ure/$1"?&amp;nbsp; What happens when you run the script interactively on&lt;BR /&gt;these systems?&amp;nbsp; (You can test your script on your systems in your&lt;BR /&gt;environment more easily than anyone here can.)&lt;/P&gt;&lt;P&gt;&amp;gt; [...] users call their profile [...]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Do all users have see the same behavior?&amp;nbsp; What's in "their profile"?&lt;BR /&gt;Is the script causing the problem, or is "their profile" causing it?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2016 13:14:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-script-hogging-cpu/m-p/6895392#M489701</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2016-09-02T13:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Cron script hogging cpu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-script-hogging-cpu/m-p/6895587#M489703</link>
      <description>&lt;P&gt;What command does top(1) show is using that amount of CPU?&lt;/P&gt;&lt;P&gt;Also, why aren't you using "fgrep -x -q' to find your ID in that file?&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2016 04:02:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-script-hogging-cpu/m-p/6895587#M489703</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2016-09-03T04:02:29Z</dc:date>
    </item>
  </channel>
</rss>

