Hello All,

I have two perl scripts that have to run at the same time on a windows box. Is there a way in perl to kick off two scripts at the same time?

Regards,


[ stay on-list please, and bottom-post please ]

William Black wrote:
I have two perl scripts that need to be run at the same time.

x.pl
y.pl

How is this done?

You can use a shell to start them both:

  $ perl x.pl &; perl y.pl &

Or, one can fork() and exec() the other:

  x.pl
  ----

  # start y.pl running
  fork && exec 'y.pl';

  ... x.pl continues ...

See

  perldoc -f fork
  perldoc -f exec
  perldoc perlipc
William Black

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.com/go/onm00200415ave/direct/01/



-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to