Dirk80 has asked for the wisdom of the Perl Monks concerning the following question:
Hello wise monks,
I have written several command line perl scripts which I now want to call from a TK GUI. Because it are long jobs and I don't want to have a blocking GUI, I decided the following:
I have a main script which contains the TK GUI. This main script is then calling the other scripts by using inter process communication (fileevent functionality in TK) when the user presses a button. I call these other scripts helper scripts.
Of course I know with the help of you that it would be also possible to do this with threads when I'm very careful. But I think I prefer the way of IPC now. Is this design ok, or is it a bad idea to do it like this? What would be the alternatives?
But now to my main problem. Usually I pack my script with pp into a standalone executable to be able to deploy it. But now I want to pack not only my main script into a standalone executable, but also my helper scripts with all their dependencies.
Here my trials:
Problem is here that it is not possible to call "standalone.exe" without an argument because it does not know what is the "main script".
Problem is here that the dependencies of the "helper_script1.pl" are not packed into the "standalone.exe".
Then I tried it with "-M". This option usually checks the dependencies and adds them, but not if the suffix is ".pl".
What is a good way to solve this problem with pp?
Thank you a lot for your help!
Greetings,
Dirk
UPDATE:
SOLUTION is posted here: http://www.perlmonks.org/?node_id=959677
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: pp and multiple perl scripts
by Anonymous Monk on Mar 06, 2012 at 18:06 UTC | |
by Dirk80 (Pilgrim) on Mar 07, 2012 at 21:12 UTC | |
by Anonymous Monk on Mar 08, 2012 at 02:54 UTC | |
by Dirk80 (Pilgrim) on Mar 08, 2012 at 08:03 UTC | |
by Dirk80 (Pilgrim) on Mar 08, 2012 at 21:44 UTC | |
|