<?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 renice via cron in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/renice-via-cron/m-p/2870524#M3151</link>
    <description>All, I am having problem setting priority of a process to a higher value via cron job. According to the man page on renice, only root can up the priority of a process. How would I get around this? Thanks.</description>
    <pubDate>Thu, 26 Dec 2002 20:12:20 GMT</pubDate>
    <dc:creator>K.C. Chan</dc:creator>
    <dc:date>2002-12-26T20:12:20Z</dc:date>
    <item>
      <title>renice via cron</title>
      <link>https://community.hpe.com/t5/operating-system-linux/renice-via-cron/m-p/2870524#M3151</link>
      <description>All, I am having problem setting priority of a process to a higher value via cron job. According to the man page on renice, only root can up the priority of a process. How would I get around this? Thanks.</description>
      <pubDate>Thu, 26 Dec 2002 20:12:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/renice-via-cron/m-p/2870524#M3151</guid>
      <dc:creator>K.C. Chan</dc:creator>
      <dc:date>2002-12-26T20:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: renice via cron</title>
      <link>https://community.hpe.com/t5/operating-system-linux/renice-via-cron/m-p/2870525#M3152</link>
      <description>Use sudo in crontab to change the priority. It is something like i) with visudo include cron into the sudoers file with NOPASSWD and only for the renice command ii) edit the script that is called in the crontab like:&lt;BR /&gt;&lt;BR /&gt;sudo renice +1 &lt;PIDOF the="" process=""&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Szilva&lt;/PIDOF&gt;</description>
      <pubDate>Fri, 27 Dec 2002 00:27:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/renice-via-cron/m-p/2870525#M3152</guid>
      <dc:creator>Szilveszter Juhos</dc:creator>
      <dc:date>2002-12-27T00:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: renice via cron</title>
      <link>https://community.hpe.com/t5/operating-system-linux/renice-via-cron/m-p/2870526#M3153</link>
      <description>I know sudo will work, does any one know of anthing else?  I will use sudo as the last resort.  Thanks.</description>
      <pubDate>Fri, 27 Dec 2002 01:08:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/renice-via-cron/m-p/2870526#M3153</guid>
      <dc:creator>K.C. Chan</dc:creator>
      <dc:date>2002-12-27T01:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: renice via cron</title>
      <link>https://community.hpe.com/t5/operating-system-linux/renice-via-cron/m-p/2870527#M3154</link>
      <description>&lt;A href="http://freshmeat.net/projects/super/?topic_id=136" target="_blank"&gt;http://freshmeat.net/projects/super/?topic_id=136&lt;/A&gt;&lt;BR /&gt;Hm?&lt;BR /&gt;Szilva</description>
      <pubDate>Fri, 27 Dec 2002 21:46:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/renice-via-cron/m-p/2870527#M3154</guid>
      <dc:creator>Szilveszter Juhos</dc:creator>
      <dc:date>2002-12-27T21:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: renice via cron</title>
      <link>https://community.hpe.com/t5/operating-system-linux/renice-via-cron/m-p/2870528#M3155</link>
      <description>We have 2 programs xmgen and cscomm that our developer has failed to startup up with a nice value.  I created a root cron job containing the following lines and ran it Once an hour until the developer fixed the problem.&lt;BR /&gt;(this was using HPUX 11i.)  You might have change the cut fields for other unixes.&lt;BR /&gt;&lt;BR /&gt;good luck&lt;BR /&gt;Rory&lt;BR /&gt;&lt;BR /&gt;for arg in `ps -fel |grep -e xmgen -e cscomm |grep -v grep|cut -c 15-21`&lt;BR /&gt;do&lt;BR /&gt;renice -n +20 ${arg}&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Dec 2002 17:02:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/renice-via-cron/m-p/2870528#M3155</guid>
      <dc:creator>Rory R Hammond</dc:creator>
      <dc:date>2002-12-30T17:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: renice via cron</title>
      <link>https://community.hpe.com/t5/operating-system-linux/renice-via-cron/m-p/2870529#M3156</link>
      <description>All,&lt;BR /&gt;I've tried running the cron job under root. But still the priority did not increase. Any idea?</description>
      <pubDate>Mon, 30 Dec 2002 17:26:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/renice-via-cron/m-p/2870529#M3156</guid>
      <dc:creator>K.C. Chan</dc:creator>
      <dc:date>2002-12-30T17:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: renice via cron</title>
      <link>https://community.hpe.com/t5/operating-system-linux/renice-via-cron/m-p/2870530#M3157</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Does the priority Increases when you run the command as root in the shell prompt manually ?&lt;BR /&gt;&lt;BR /&gt;Try this in that Cron script&lt;BR /&gt;&lt;BR /&gt; /usr/bin/snice -20 &lt;PROCESS_NAME&gt;&lt;BR /&gt;&lt;BR /&gt;eg:&lt;BR /&gt;&lt;BR /&gt;/usr/sbin/snice -20 httpd&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;U.SivaKumar&lt;BR /&gt;&lt;/PROCESS_NAME&gt;</description>
      <pubDate>Tue, 31 Dec 2002 06:45:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/renice-via-cron/m-p/2870530#M3157</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2002-12-31T06:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: renice via cron</title>
      <link>https://community.hpe.com/t5/operating-system-linux/renice-via-cron/m-p/2870531#M3158</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Are you running that process as what ? root or that user ?.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;U.SivaKumar</description>
      <pubDate>Tue, 31 Dec 2002 06:54:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/renice-via-cron/m-p/2870531#M3158</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2002-12-31T06:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: renice via cron</title>
      <link>https://community.hpe.com/t5/operating-system-linux/renice-via-cron/m-p/2870532#M3159</link>
      <description>SivaKimar,&lt;BR /&gt;Yes when I ran it manually it works. Yes, I am running the cron job as root. Yes, I've included the full path of the command as /usr/bin/renice -19 &lt;COMMAND&gt;. Any ideas why? Thanks.&lt;/COMMAND&gt;</description>
      <pubDate>Tue, 31 Dec 2002 14:38:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/renice-via-cron/m-p/2870532#M3159</guid>
      <dc:creator>K.C. Chan</dc:creator>
      <dc:date>2002-12-31T14:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: renice via cron</title>
      <link>https://community.hpe.com/t5/operating-system-linux/renice-via-cron/m-p/2870533#M3160</link>
      <description>ALL, &lt;BR /&gt;I've figured it out; There was no problem running renicing priority as root via cron. It was ths script, it was checking against an environmental varialbe USER to see if root is running the script.  Unfortunately this was not set in cron, this is solved when I set the USER variable in cron. Thanks all for your help.</description>
      <pubDate>Tue, 31 Dec 2002 16:16:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/renice-via-cron/m-p/2870533#M3160</guid>
      <dc:creator>K.C. Chan</dc:creator>
      <dc:date>2002-12-31T16:16:00Z</dc:date>
    </item>
  </channel>
</rss>

