Nice the process on user level


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Nice the process on user level
# 1  
Old 09-19-2006
Nice the process on user level

Hi there,
I was wandering, if it is possible to nice set of process on user level.
Say, I have user1,user2
if user1 spawns 12 process and user2 spwans 15 process, Is there a way can I change the priority of any process started by user1 to 5 and viz-a-viz user2 to 20

Thanks in advance
# 2  
Old 09-19-2006
You can change the nice level of a running process with 'renice', see 'man renice'.

You can only increase the nice level, and only for programs you own.

The superuser can set any process to any priority.
# 3  
Old 09-20-2006
Hi,
thankx, so it can be done only for the running process . If I want for ANY process by a user it cannot be done right ?
# 4  
Old 09-20-2006
I had assumed you already knew about the program for launching a process with a reduced priority since you were already using the term 'nice'. That's what the program for that is called -- 'nice'.

Nice one process, and it's children will also run at that priority level.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Run level process when Physical server goes down

Need inputs when physical server is coming down (ex- init 0) . We have a physical server in that there are couple of LDOM's and in LDOM's there are couple of Zones . In zones there are applications running . Physical Server (T4 Server) -> LDOM -> ZONES -> applications There are scripts... (1 Reply)
Discussion started by: ajayram_arya
1 Replies

2. Shell Programming and Scripting

script to monitor the process system when a process from user takes longer than 15 min run.

get email notification from from system when a process from XXXX user takes longer than 15 min run.Let me know the time estimation for the same. hi ,any one please tell me , how to write a script to get email notification from system when a process from as mentioned above a xxxx user takes... (1 Reply)
Discussion started by: kirankrishna3
1 Replies

3. AIX

Process limit on OS level

Hi, Would like to know where do i find these process limit on OS level as my MQ is prompting this error... An attempt to create an MQ process was rejected by the operating system due to a process limit (2 Replies)
Discussion started by: giriplug
2 Replies

4. UNIX for Dummies Questions & Answers

need shell script that checks your user id and your permission level

I just need the shell script that checks your user id and your permission level. I sort of have one to check the user id but I don't like it. Can anyone help with this? (3 Replies)
Discussion started by: yammer
3 Replies

5. Shell Programming and Scripting

replace a file in user level

hi all how to replace a file in user level.. i tried this cp -r /usr/lib/munna.txt /usr/lib/ saying the error permission denied.. is there any way.. please help me to replace a file in user level (not from root) thank you in advance (4 Replies)
Discussion started by: munna_dude
4 Replies

6. UNIX for Advanced & Expert Users

User inactivity at OS level

Dear friends, Can anyone let me know how to configure various OS mentioned below to get user ids deactivated automatically if not logged in at all for a period of, say, 45 days? 1. UNIX / Linux / AIX / Tru64 2. It is OK whether the solution is by running OS commands / running scripts written... (1 Reply)
Discussion started by: bache_gowda
1 Replies

7. Programming

nice command and nice() system call

Hi I want to implement the nice command in the shell that I am building. I came to know that there is a corresponding nice() system call for the same. But since I will be forking different processes to run different commands typed on the command prompt, is there any way I can make a command... (2 Replies)
Discussion started by: tejbuch
2 Replies

8. HP-UX

urgent help required on changing process priority using nice

Hi folks, Hope you can help me. I have a process that is currently running at nice 20 and need it to run faster (-10?). How do I change the process using nice? I have the process number and thought it would be along the lines of; nice -10 process_id but it doesn't seem to like that. (1 Reply)
Discussion started by: gshuttleworth
1 Replies

9. UNIX for Advanced & Expert Users

process nice level command line vs cron

Under, Solaris 10 I have the following problem: A script executed at command line runs with nice level 0, as expected. Same script started under (user) crontab runs with nice level 2. I would prefer it run at 0. Is this possible? If so, how? Thanks. (0 Replies)
Discussion started by: henrydark
0 Replies

10. UNIX for Dummies Questions & Answers

nice (user command)

Can someone tell me .. how to find a user & process who has executed nice (scheduled priority) to one of his process. .Tks.. (5 Replies)
Discussion started by: sivan
5 Replies
Login or Register to Ask a Question