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

I'd like for my perl script to call other perl scripts and let them execute in new terminal windows. I know how to execute one perl script from another, but it executes in the same window as the calling script.

Thanks Tim

Replies are listed 'Best First'.
Re: open new terminal windows
by PodMaster (Abbot) on Aug 26, 2004 at 09:03 UTC
    on windows, you might do it as
    system qw[ cmd.exe /c ], $^X, '/path/to/foo.pl', ...;
    cmd.exe creates the "terminal windows". I hope that clears up what you have to do.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

      Any idea how to do this on OS X?
        Exactly the same. Pick a shell ($ENV{SHELL}), figure out how it takes its arguments, invoke with system.

        MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
        I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
        ** The third rule of perl club is a statement of fact: pod is sexy.

Re: open new terminal windows
by gellyfish (Monsignor) on Aug 26, 2004 at 09:00 UTC

    Of course this depends very much on what OS you are using but if, for instance you are using a Unix like operating system with X then you can run:

    xterm -e yourprogram.pl

    /J\