"Jos� A.Navarro Ram�n" wrote:

> Hola:
>
> Llevo varios d�as intentado que un script (no importa el lenguaje) me
> comunique �nicamente la ip asignada por mi ISP en la interfaz ppp0. Lo
> puedo conseguir como root (el script llama a ifconfig al final me pasa
> mi ip).
> El problema es que quiero obtener la IP sin ser superusuario y no
> encuentro la forma.

"sudo" es la soluci�n a tu problema:

* man sudo
* Documentaci�n en /usr/doc/sudo
* fichero de configuraci�n /etc/sudoers (�ojo! solamente legible por root) 
contiene ejemplos
comentados.


> �Ah! Tengo potato.

Da igual ...

Saludos,

================================================================================

JUAN CARLOS AMENGUAL            Suddenly I stop,
UNIVERSIDAD JAUME I             but I know it's too late.
DEPARTAMENTO DE INFORM�TICA     I'm lost in a forest, all alone.
CAMPUS DE RIU SEC, EDIFICIO TI  The girl was never there, it's always the same,
CASTELLON, 12071. SPAIN.        I'm running towards nothing
Phone: +34 964 728361           again and again and again and again.
Fax: +34 964 728435                     Robert Smith (The Cure)
e-mail: [EMAIL PROTECTED]       - "A Forest", Seventeen Seconds, 1980,
                                                Fiction Rec. -

================================================================================



Responder a