I didn't try this method but in my linux box only root can do ifconfig.
Moreover, "ifconfig | grep inet\ addr" will list all the interfaces
including the loopback which has a different format than the other ones.
It has to be a better way to get this information...
Federico
Quoting Emiliano Pérez <
[hidden email]>:
> Hi Marco, some time ago i had the same problem and solved using OS commands
> for the ip address, in windows it would look something like this:
>
> (ExternalProcess defaultClass cshOne: 'ipconfig /all') readStream.
>
> That should return all the info, with a little parsing you can get the MAC,
> ip addresses, etc....
> For ubuntu i remember using something like this:
>
> (ExternalProcess defaultClass shOne: ifconfig | grep inet addr) readStream.
>
> And for the SO identification "Screen default platformName" should work
> fine, it returns a string (MS-Windows, X11, etc...).
>
> Hope it helps, Emiliano.
>
----------------------------------------------------------------
Este mensaje ha sido enviado utilizando IMP desde LIFIA.