[squeak-dev] Re: NetNameResolver/ifconfig/interfaces

Eliot Miranda eliot.miranda at gmail.com
Fri Mar 12 18:40:52 UTC 2010


On Fri, Mar 12, 2010 at 10:14 AM, Andreas Raab <andreas.raab at gmx.de> wrote:

> On 3/12/2010 9:32 AM, Jon Hylands wrote:
>
>> On Fri, 12 Mar 2010 11:41:02 -0500, Chris Cunnington
>> <smalltalktelevision at gmail.com>  wrote:
>>
>>  Can it be told which interface to look at? How does it choose?
>>>
>>
>> Been there done that. I was told there is no simple way to do this,
>> that it would require VM changes, etc.
>>
>
> Yup. Don't laugh, this is what we do:
>
> server.sh:
>
> ETH0= `/sbin/ifconfig eth0 | grep 'inet addr' | cut -c21-`
> $(VM) -defaultServerName: "$ETH0"
>

Is this a response to the one liner challenge?  I don't get how it works.
 Where are the parentheses??


> Cheers,
>  - Andreas
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20100312/6a9f2df1/attachment.htm


More information about the Squeak-dev mailing list