From: daz Date: 2003-07-12T13:19:55+09:00 Subject: Re: Getting my IP address "ts" wrote: > > svg% ruby -rsocket -e 'p IPSocket.getaddress(Socket.gethostname)' > "138.102.114.196" > svg% > > > Guy Decoux > Ah, that answers my puzzle from a couple of days ago. C:\WINDOWS>ruby -rsocket -e'puts IPSocket.getaddress(Socket.gethostname)' .... gives nothing / no error msg. C:\WINDOWS>ruby -rsocket -e 'puts IPSocket.getaddress(Socket.gethostname)' 213.249.173.103 .... OK. Difference: a space after -e Space after -r is optional, apparently. I'll go and produce my "language stress graph" for this week ;) daz -- ruby -rwavy -e 'puts Wavy.line(rand(80), rand(6), ".")'