LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Nam Hoang (hongvnc_at_[hidden])
Date: 2006-11-12 22:48:03


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