List Info

Thread: LAM: lam Digest, Vol 807, Issue 1




LAM: lam Digest, Vol 807, Issue 1
user name
2006-11-13 03: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
_______________________________________________
This list is archived at http://www.l
am-mpi.org/MailArchives/lam/
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )