<?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 renicing a user process in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/renicing-a-user-process/m-p/3104281#M147474</link>
    <description>Hello &lt;BR /&gt;&lt;BR /&gt;I would like to set a user to have the lowest priority for processing. But each time this person logs in they have this priority.&lt;BR /&gt;&lt;BR /&gt;I would imagine adding the command to .profile is the best method to do this.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
    <pubDate>Tue, 28 Oct 2003 10:19:19 GMT</pubDate>
    <dc:creator>Stevan Popovic</dc:creator>
    <dc:date>2003-10-28T10:19:19Z</dc:date>
    <item>
      <title>renicing a user process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renicing-a-user-process/m-p/3104281#M147474</link>
      <description>Hello &lt;BR /&gt;&lt;BR /&gt;I would like to set a user to have the lowest priority for processing. But each time this person logs in they have this priority.&lt;BR /&gt;&lt;BR /&gt;I would imagine adding the command to .profile is the best method to do this.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Oct 2003 10:19:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renicing-a-user-process/m-p/3104281#M147474</guid>
      <dc:creator>Stevan Popovic</dc:creator>
      <dc:date>2003-10-28T10:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: renicing a user process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renicing-a-user-process/m-p/3104282#M147475</link>
      <description>I didnt try it, but this is an idea:&lt;BR /&gt;change his shell to your script, which invokes shell with specified priority (nice something /usr/bin/sh). All the processes inherits priority from it's parents, so all user processes will be running with this priority&lt;BR /&gt;&lt;BR /&gt;-Tomek</description>
      <pubDate>Tue, 28 Oct 2003 10:27:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renicing-a-user-process/m-p/3104282#M147475</guid>
      <dc:creator>Tomek Gryszkiewicz</dc:creator>
      <dc:date>2003-10-28T10:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: renicing a user process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renicing-a-user-process/m-p/3104283#M147476</link>
      <description>This should work from their .profile:&lt;BR /&gt;&lt;BR /&gt;renice -n 19 $$&lt;BR /&gt;&lt;BR /&gt;This will renice their login shell to the lowest priority, and then any task spawned from that shell should inherit the new priority, so everything they run will be at the lowest level.&lt;BR /&gt;&lt;BR /&gt;Of course, by default the user can edit their .profile and remove this, so you'll want to change ownership on that and their home dir so they can change/replace their .profile.&lt;BR /&gt;&lt;BR /&gt;HTH.</description>
      <pubDate>Tue, 28 Oct 2003 10:28:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renicing-a-user-process/m-p/3104283#M147476</guid>
      <dc:creator>Brian Bergstrand</dc:creator>
      <dc:date>2003-10-28T10:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: renicing a user process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renicing-a-user-process/m-p/3104284#M147477</link>
      <description>This is one approach:&lt;BR /&gt;&lt;BR /&gt;In the user's .profile as the last entry:&lt;BR /&gt;&lt;BR /&gt;exec nice -n 20 sh&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Oct 2003 10:28:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renicing-a-user-process/m-p/3104284#M147477</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-10-28T10:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: renicing a user process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renicing-a-user-process/m-p/3104285#M147478</link>
      <description>If you add this to .profile, user can change the priority, (if permissions there). So i would suggest to put in /etc/profile and /etc/csh.login...Do a if condition..&lt;BR /&gt;&lt;BR /&gt;export LOGID=`whoami`&lt;BR /&gt;&lt;BR /&gt;if [ $LOGID -eq "user" ]&lt;BR /&gt;then&lt;BR /&gt;do&lt;BR /&gt;.....whatever u do with nice&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Oct 2003 10:29:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renicing-a-user-process/m-p/3104285#M147478</guid>
      <dc:creator>Vijaya Kumar_3</dc:creator>
      <dc:date>2003-10-28T10:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: renicing a user process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renicing-a-user-process/m-p/3104286#M147479</link>
      <description>Weve done this before, but by renaming the binary or application which launches their program and replacing it with a script with the same name which instead does; &lt;BR /&gt;&lt;BR /&gt;nice -10 &lt;BINARY&gt;&lt;BR /&gt;&lt;BR /&gt;This way whenever someone logs in it always runs their application with a lower priority.&lt;BR /&gt;&lt;/BINARY&gt;</description>
      <pubDate>Tue, 28 Oct 2003 10:29:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renicing-a-user-process/m-p/3104286#M147479</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2003-10-28T10:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: renicing a user process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renicing-a-user-process/m-p/3104287#M147480</link>
      <description>Ooops, that should be "CAN'T change/replace their .profile."&lt;BR /&gt;&lt;BR /&gt;Damn fat fingers.</description>
      <pubDate>Tue, 28 Oct 2003 10:29:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renicing-a-user-process/m-p/3104287#M147480</guid>
      <dc:creator>Brian Bergstrand</dc:creator>
      <dc:date>2003-10-28T10:29:58Z</dc:date>
    </item>
  </channel>
</rss>

