Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by Marshall (Canon)
on Nov 15, 2011 at 16:07 UTC ( [id://938209]=note: print w/replies, xml ) Need Help??


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

If what you want to do is to launch word as a completely separate process and keep going, then use the Windows "START" command. Type help start at the command line for details.

Perhaps you could explain what (if any) interaction your Tk application plans to have with this Word document process once it is started?

Replies are listed 'Best First'.
Re^2: Unresponsive Perl Tk GUI when using system() calls
by amdme127 (Novice) on Nov 15, 2011 at 16:22 UTC

    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.

      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://938209]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-03-29 07:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found