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 Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to