in reply to Re: How to perform a subroutine run in cpan Tk::ExecuteCommand module
in thread How to perform a subroutine run in cpan Tk::ExecuteCommand module

Thank you Zentara, I have read similar code as you posted and tried the code before I posted this question. The script work fine except for 2 things:-

i.The button freeze once it is hitted, and there is no way to kill the ongoing job.

ii.The entry seem only capture first single word from the command line to show in the text widget, I need the whole command line to be prompt.

Is there any solution fto fix above 2 problems, I don't mind switching to this method if they can achieve my 2 objectives below:-

i. To show the state of the command within the text widget.

ii. There is a way to cancel the ongoing process.

I chosen Tk::ExecuteCommand as it is non-blocking and the button is tactfully turn to "cancel" when a job is running so that user could have chance to cancel an ongoing job.

  • Comment on Re^2: How to perform a subroutine run in cpan Tk::ExecuteCommand module

Replies are listed 'Best First'.
Re^3: How to perform a subroutine run in cpan Tk::ExecuteCommand module
by Janish (Sexton) on Jun 26, 2014 at 01:54 UTC

    To add on, is there a way to call subroutine in Tk::ExecuteCOmmand instead of calling a single liner command?

Re^3: How to perform a subroutine run in cpan Tk::ExecuteCommand module
by Janish (Sexton) on Jun 26, 2014 at 01:54 UTC

    To add on, is there a way to call subroutine in Tk::ExecuteCOmmand instead of calling a single liner command?