Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Unresponsive Perl Tk GUI when using system() calls

by amdme127 (Novice)
on Nov 15, 2011 at 16:22 UTC ( [id://938216]=note: print w/replies, xml ) Need Help??


in reply to Re: Unresponsive Perl Tk GUI when using system() calls
in thread Unresponsive Perl Tk GUI when using system() calls

The program creates a catalog index for my company. The word document was just an example (probably not the best, because it is only used for documentation). I let the user create and view text files and excel files (with WriteExcel) that will allow them to confirm the output and take the output and put it in the needed format for the catalog.

Some of the processing in creating the index and the other tools/features I added to the program can take quite a few minutes to process. Many of my users have no clue about programming or computers (thus the GUI interface and usage of Cava Packager for executables), so they will want to open the excel file or text file to check them over and at the same time they expect to go back and use other features as that file is opened (from the Perl Tk interface) since the other tools/features take a long time to run.

I want to be able to let them review the output and also be able to still operate the Perl Tk GUI at the same time.

  • Comment on Re^2: Unresponsive Perl Tk GUI when using system() calls

Replies are listed 'Best First'.
Re^3: Unresponsive Perl Tk GUI when using system() calls
by thundergnat (Deacon) on Nov 15, 2011 at 16:37 UTC

    It sounds like Marshall was correct and you want to use the windows start command to start up the external program in a new process. Assuming you have the extension associated, you can just do:

    system("start documentation.doc")

    to start up the default application. If not, or if you want to use a non-default application, supply the executable name (if it is in the path) or the path to the executable (if it isn't).

    system("start wordpad.exe documentation.doc")

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://938216]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2024-04-23 13:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found