Another possibility that directly gives the right result and uses
ifconfig:
$ ifconfig | grep 'inet '| grep -v '127.0.0.1' | cut -d: -f2 | awk '{
print $1}'
That said, I don't know if the "inet" string stays the same in every
locale, though.
--
sysmonitor screenlet fails to find the computer's IP address
https://bugs.launchpad.net/bugs/618868
You received this bug notification because you are a member of
Screenlets Dev Team, which is subscribed to Screenlets.
_______________________________________________
Mailing list: https://launchpad.net/~screenlets-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~screenlets-dev
More help : https://help.launchpad.net/ListHelp