You actually should be able to get the hostname, via Wx::get_host_name()
which will return the hostname of the machine that the application runs on.
On Wed, Jul 9, 2008 at 7:00 AM, Eric Rubin <erubin at valcom.com> wrote:
> Thanks, Alex. I did find a place where I was doing `hostname` and getting
> rid of this fixed the problem.
>
> Eric
>
> -----Original Message-----
> From: wxruby-users-bounces at rubyforge.org
> [mailto:wxruby-users-bounces at rubyforge.org] On Behalf Of Alex Fenton
> Sent: Wednesday, July 09, 2008 5:47 AM
> To: General discussion of wxRuby
> Subject: [wxruby-users] DOS box popping up under rubyscript2exe
>
> Hello
>
> My email has been broken for a week and some of it seems to have gone
> astray - so if there are other unanswered wxruby queries kicking about,
> please repost or forward me them.
>
> I have encountered this problem with a DOS box popping up under rubyw /
> rubyscript2exe; I don''t think it''s related to wxruby. I
found them
> popping up when shelling out with backticks - I believe the way that
> ruby executes external programs on Windows causes this if no command
> shell is already present. This may be what''s happen with receiving
a
> message from an external program in your case.
>
> I got round it by calling the external program via Win32API on Windows,
> instead of ruby''s own system/backticks. There''s some code
that
> encapsulates this here:
>
>
>
http://weft-qda.rubyforge.org/svn/branches/stable_1-0/weft-qda/lib/weft/filt
>
ers/win32backtick.rb<http://weft-qda.rubyforge.org/svn/branches/stable_1-0/weft-qda/lib/weft/filters/win32backtick.rb>
>
> hth
> alex
> _______________________________________________
> wxruby-users mailing list
> wxruby-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wxruby-users
>
> _______________________________________________
> wxruby-users mailing list
> wxruby-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wxruby-users
>
--
Mario Steele
http://www.trilake.net
http://www.ruby-im.net
http://rubyforge.org/projects/wxruby/
http://rubyforge.org/projects/wxride/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/wxruby-users/attachments/20080709/d811fc30/attachment.html>