justin bengtson wrote:

> is there a way to re-nice a command besides top?  better yet, is
> there a way to set the nice value of a command at the moment of
> execution (so i don't have to use top)?

>From the command line, you can use nice or renice.

jogger-egg ~> nice +5 sleep 30 &
[1] 3584
jogger-egg ~> ps l
  F   UID   PID  PPID PRI  NI   VSZ  RSS WCHAN  STAT TTY        TIME COMMAND
000  1000  1132  1080  10   0  2344 1368 rt_sig S    pts/1      0:00 -csh
000  1000  3584  1132   5   5  1116  356 nanosl SN   pts/1      0:00 sleep 30
000  1000  3585  1132  17   0  2812 1072 -      R    pts/1      0:00 ps l
jogger-egg ~> renice +13 3584
3584: old priority 5, new priority 13
jogger-egg ~> ps l
  F   UID   PID  PPID PRI  NI   VSZ  RSS WCHAN  STAT TTY        TIME COMMAND
000  1000  1132  1080  10   0  2348 1372 rt_sig S    pts/1      0:00 -csh
000  1000  3584  1132  13  13  1116  356 nanosl SN   pts/1      0:00 sleep 30
000  1000  3588  1132  17   0  2812 1072 -      R    pts/1      0:00 ps l
jogger-egg ~> wait

[1]    Done                          sleep 30
jogger-egg ~> 

Note that to decrease a process's niceness you have to be superuser.

-- 
Bob Miller                              K<bob>
kbobsoft software consulting
http://kbobsoft.com                     [EMAIL PROTECTED]

Reply via email to