Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I have a script A that is in GUI, and script B that is web-based.

How do I make script A and B execute at the same time with one click.

I tried combining both scriptAscritB.pl but it wouldn't work.

I also tried perl2exe scriptA.pl scriptB.pl but still wouldn't work.

Is there any other way?

Replies are listed 'Best First'.
Re: GUI and web open at the same time
by rjbs (Pilgrim) on Jul 14, 2004 at 18:17 UTC
    Well, if Script B is web-based -- by which I assume you mean that it should be accessed via a web browser -- you can't just run it from the command line.

    I think the simplest thing would be to write a script that opens the web site and then runs the GUI app. This should be trivial with a shell script.
    #!/bin/sh mozilla -remote "openURL(http://your.url.here/, new-tab)" /path/to/guiscript
    Since "perl2exe" suggests that you're on Win32, you probably want a batchfile like:
    C:\Program Files\Internet Explorer\IEXPLORE http://YOUR.URL.HERE C:\Perl\Bin\Perl C:\your\gui\script
    rjbs
Re: GUI and web open at the same time
by Joost (Canon) on Jul 14, 2004 at 18:14 UTC
Re: GUI and web open at the same time
by McMahon (Chaplain) on Jul 14, 2004 at 18:14 UTC
    Sounds like you're on Windows.
    You might consider Win32::GUITest-- it's not "one click", but it's very very close.