Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3335918
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:04:26+00:00 2026-05-18T00:04:26+00:00

I have to display some print statements (which I get while running a Perl

  • 0

I have to display some print statements (which I get while running a Perl script) in the Tk GUI. I tried to show an example in pictorial format, for example:

Initializing the parser ...

Running the parser ...

Enabling the codec ...

Connected to the socket ...

Sending ipv4 traffic into the code ...

It goes on like this. I don’t know how to do it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T00:04:27+00:00Added an answer on May 18, 2026 at 12:04 am

    You could run your perl script through Tk::ExecuteCommand

    use Tk;
    use Tk::ExecuteCommand;
    
    $ec = tkinit()->ExecuteCommand(
         -command    => '',
         -entryWidth => 50,
         -height     => 10,
         -label      => '',
         -text       => 'Execute',
     )->pack;
     $ec->configure(-command => 'perl ./my_other_perl_script.pl');
     $ec->execute_command;
     $ec->update;
    

    In general, you need to do some sort of IPC to run a batch and update a Tk GUI. Because IO handles can create events in Tk. Tk::ExecuteCommand kind of hides the complexity of the IPC.

    Otherwise, you can design the IPC scheme of your own. Probably (roughly put) pipe, fork, and setup pipe events as a IO event, and the crucial commands to make a read-only log are:

    $text->configure( -state => 'normal' );
    $text->insert( end => $text_I_just_read_from_the_pipe );
    $text->configure( -state => 'disabled' );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a bunch of variables I want to display of which some are
I have matlab function that calls a Perl script which converts a large text
I have to display some private Youtube videos in my blog. I cannot embed
How can i compress and image file(*bmp,*jpeg) in C#, I have to display some
i have two foreach loop to display some data, but i want to use
I have to develop an application that display some information about the possessor of
I have a JTable that I want to use to display some data (a
I have a custom Dialog that contains only a TextView to display some text
In a frame I have two columns. In the first column I display some
I'have written a simple code, that gets accelerometer&orientation meter and display some graphics based

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.