Talk:Online.pl

From Organic Design wiki

Here is the output from ifconfig on Darwin:

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128 
        inet6 fe80::1 prefixlen 64 scopeid 0x1 
        inet 127.0.0.1 netmask 0xff000000 
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        ether 00:0a:95:eb:c9:22 
        media: autoselect (<unknown type>)
        supported media: none autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 10baseT/UTP <full-duplex,hw-loopback> 100baseTX <half-duplex> 100baseTX <full-duplex> 100baseTX <full-duplex,hw-loopback>
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet6 fe80::230:65ff:fe11:7563 prefixlen 64 scopeid 0x5 
        inet 192.168.1.5 netmask 0xffffff00 broadcast 192.168.1.255
        ether 00:30:65:11:75:63 
        media: autoselect status: active
        supported media: autoselect
fw2: flags=8822<BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 2030
        lladdr 00:0a:95:ff:fe:eb:c9:22 
        media: autoselect <full-duplex> status: inactive
        supported media: autoselect <full-duplex>

Do you know what the easiest way to get the local hostname is on *ux? iBook:~ robcarter$ hostname iBook.local

So the pattern would be(?): /^(.+)\./