vikee has asked for the wisdom of the Perl Monks concerning the following question:

Hi there :)

I'm trying to use the above module under WinXP and it doesn't 
execute the command - show any output in the ROText window.

can you plese help me?

#/usr/bin/perl use Tk; use Tk::ExecuteCommand; $mw = MainWindow->new; $executecommand = $mw->ExecuteCommand(-height => 10, -scrollbars => 'o +se', bg => 'white')->pack(-expand => 'yes', -fill =>'both'); $executecommand->terse_gui; $executecommand->bell; $executecommand->update; $executecommand->configure(-command => 'set'); #for example my $b_stopstart = $mw->Button(-text => "execute", -width => 12, -command => sub { $executecommand->execute_command; } )->pack(-side => 'right'); MainLoop;

Replies are listed 'Best First'.
Re: Tk::ExecuteCommand problem
by zentara (Cardinal) on Jul 11, 2005 at 18:16 UTC
    You might want to go to http://groups.google.com and search for "Tk::ExecuteCommand Windows" and see all the problems. I "think" the main problem is that ExecuteCommand uses "fileevent" to read output, and it dosn't work well on MSWindows. But I may be wrong.

    I'm not really a human, but I play one on earth. flash japh
      Hi, I tryed to run the script under perl 5.6 and it worked! 
      Under versions 5.8 it doesn't work.
      
      Does anybody know why?