Re: Query on "nice" command
- From: Cameron Simpson <cs@xxxxxxxxxx>
- Date: Mon, 25 Feb 2008 17:40:14 +1100
On 25Feb2008 11:57, Ravi Shanmugam <ravi.shanmugam@xxxxxxxxxx> wrote:
| I am writing a shell script, but I run that shell script with "nice -18"
| priority without invoking from command line like "nice -18 <script
| name>.
| Is it possible to embed the "nice" command in the same shell script? If
| yes, could somebody help me.
If you are thinking "make the script make itself nice", then yes. You want
the "renice" command, for adjusting the niceness of an existing process.
Apply it to the current process using $$ (the shell's script's process id):
renice 18 -p $$
See "man renice" for details.
Cheers,
--
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
- References:
- Query on "nice" command
- From: Ravi Shanmugam
- Query on "nice" command
- Prev by Date: Query on "nice" command
- Next by Date: mount Linux directory on Windows
- Previous by thread: Query on "nice" command
- Next by thread: mount Linux directory on Windows
- Index(es):
Relevant Pages
|