Hi Tim,
thank for your help. I tried with sudo, but still not
overcome this problem. After modifying sudo, i can do
this command as normal user: sudo renice -1 myProgram.
But when using with mpirun such as
> -------
> #!/bin/sh
>
> sudo renice -1 $$
> exec myProgram $*
> -------
> do 'mpirun C myScript < input' whatever...
it throws a message:
"sudo: sorry, you must have a tty to run sudo"
I also tried using execlp("renice","renice",...) but
it still throws this message. When i try with normal
program (not mpi program), execlp() run well.
I'm going to change capability (CAP_SYS_NICE) to allow
nice command executed by normal user (if this
happends, we need not use sudo). Do you think i
could/should do this ?
Thanks
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
|